Skip to content

Commit ca789fc

Browse files
committed
Run black 24.1.0
1 parent 58dc9c8 commit ca789fc

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

magicbot/magic_tunable.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,10 @@ def __init__(
8989
# self.__doc__ = doc
9090

9191
@overload
92-
def __get__(self, instance: None, owner=None) -> "tunable[V]":
93-
...
92+
def __get__(self, instance: None, owner=None) -> "tunable[V]": ...
9493

9594
@overload
96-
def __get__(self, instance, owner=None) -> V:
97-
...
95+
def __get__(self, instance, owner=None) -> V: ...
9896

9997
def __get__(self, instance, owner=None):
10098
if instance is not None:
@@ -152,13 +150,11 @@ def setup_tunables(component, cname: str, prefix: Optional[str] = "components")
152150

153151

154152
@overload
155-
def feedback(f: Callable[[T], V]) -> Callable[[T], V]:
156-
...
153+
def feedback(f: Callable[[T], V]) -> Callable[[T], V]: ...
157154

158155

159156
@overload
160-
def feedback(*, key: str) -> Callable[[Callable[[T], V]], Callable[[T], V]]:
161-
...
157+
def feedback(*, key: str) -> Callable[[Callable[[T], V]], Callable[[T], V]]: ...
162158

163159

164160
def feedback(f=None, *, key: Optional[str] = None) -> Callable:

magicbot/state_machine.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,11 @@ def state(
198198
*,
199199
first: bool = ...,
200200
must_finish: bool = ...,
201-
) -> Callable[[StateMethod], _State]:
202-
...
201+
) -> Callable[[StateMethod], _State]: ...
203202

204203

205204
@overload
206-
def state(f: StateMethod) -> _State:
207-
...
205+
def state(f: StateMethod) -> _State: ...
208206

209207

210208
def state(

robotpy_ext/common_drivers/xl_max_sonar_ez.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
The devices have a few different ways of reading from them, and the these drivers attempt to cover
44
some of the methods
55
"""
6+
67
import wpilib
78

89
from . import driver_base

robotpy_ext/misc/asyncio_policy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This is a replacement event loop and policy for asyncio that uses FPGA time,
33
rather than native python time.
44
"""
5+
56
from asyncio.events import AbstractEventLoopPolicy
67
from asyncio import SelectorEventLoop, set_event_loop_policy
78
from wpilib import Timer

0 commit comments

Comments
 (0)