Skip to content

Commit

Permalink
docs: forgot a few files in 9e80a8c
Browse files Browse the repository at this point in the history
  • Loading branch information
WeisLeDocto committed Oct 30, 2024
1 parent c721cb0 commit e303137
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 16 deletions.
4 changes: 1 addition & 3 deletions src/crappy/actuator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# coding: utf-8

from typing import Dict, Type

from .adafruit_dc_motor_hat import DCMotorHat
from .fake_dc_motor import FakeDCMotor
from .fake_stepper_motor import FakeStepperMotor
Expand All @@ -18,4 +16,4 @@
from .meta_actuator import MetaActuator, Actuator

from ._deprecated import deprecated_actuators
actuator_dict: Dict[str, Type[Actuator]] = MetaActuator.classes
actuator_dict: dict[str, type[Actuator]] = MetaActuator.classes
4 changes: 2 additions & 2 deletions src/crappy/blocks/generator_path/integrator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

from numpy import trapz
from typing import Union, Dict
from typing import Union
import logging

from .meta_path import Path, ConditionType
Expand Down Expand Up @@ -69,7 +69,7 @@ def __init__(self,
self._last_t = None
self._last_val = None

def get_cmd(self, data: Dict[str, list]) -> float:
def get_cmd(self, data: dict[str, list]) -> float:
"""Gets the latest values of the incoming label, integrates them and
changes the output accordingly.
Expand Down
5 changes: 3 additions & 2 deletions src/crappy/blocks/generator_path/meta_path/path.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# coding: utf-8

from time import time, sleep
from typing import Callable, Union, Dict, Optional
from typing import Union, Optional
from collections.abc import Callable
from re import split, IGNORECASE, match
import logging
from multiprocessing import current_process

from .meta_path import MetaPath

ConditionType = Callable[[Dict[str, list]], bool]
ConditionType = Callable[[dict[str, list]], bool]


class Path(metaclass=MetaPath):
Expand Down
4 changes: 1 addition & 3 deletions src/crappy/camera/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# coding: utf-8

from typing import Dict, Type

from .fake_camera import FakeCamera
from .file_reader import FileReader
from .opencv_camera_webcam import Webcam
Expand Down Expand Up @@ -30,4 +28,4 @@
from .opencv_camera_basic import CameraOpencv

from ._deprecated import deprecated_cameras
camera_dict: Dict[str, Type[Camera]] = MetaCamera.classes
camera_dict: dict[str, type[Camera]] = MetaCamera.classes
4 changes: 1 addition & 3 deletions src/crappy/inout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# coding: utf-8

from typing import Dict, Type

from .ads1115 import ADS1115
from .agilent_34420A import Agilent34420a
from .comedi import Comedi
Expand Down Expand Up @@ -36,4 +34,4 @@

# All the inout objects
from ._deprecated import deprecated_inouts
inout_dict: Dict[str, Type[InOut]] = MetaIO.classes
inout_dict: dict[str, type[InOut]] = MetaIO.classes
4 changes: 1 addition & 3 deletions src/crappy/modifier/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# coding: utf-8

from typing import Dict, Type

from .meta_modifier import Modifier, MetaModifier

from .demux import Demux
Expand All @@ -18,4 +16,4 @@

from ._deprecated import Moving_avg, Moving_med, Trig_on_change, Trig_on_value

modifier_dict: Dict[str, Type[Modifier]] = MetaModifier.classes
modifier_dict: dict[str, type[Modifier]] = MetaModifier.classes

0 comments on commit e303137

Please sign in to comment.