mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
doc: flake8 and doc8
This commit is contained in:
@@ -4,6 +4,7 @@ from .builtins import Speaker, Display, Battery, ColorLight, KeyPad, LightArray
|
||||
|
||||
from types import ModuleType
|
||||
|
||||
|
||||
def make_instance(classdef):
|
||||
"""Make a class instance to look like a module so Sphinx can parse it."""
|
||||
name = ''
|
||||
@@ -13,6 +14,7 @@ def make_instance(classdef):
|
||||
setattr(mod, m.__name__, m)
|
||||
return mod
|
||||
|
||||
|
||||
light = make_instance(ColorLight)
|
||||
|
||||
lights = make_instance(LightArray)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
from enum import Enum
|
||||
from .builtins import Speaker, Display, Battery, ColorLight, KeyPad
|
||||
|
||||
|
||||
class EV3Brick():
|
||||
"""LEGO® MINDSTORMS® EV3 Brick.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user