Skip to content

Commit 9765d7d

Browse files
committed
Fix type annotations
1 parent 2ec66f9 commit 9765d7d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

monic/expressions/registry.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ def reset(self) -> None:
4343
self._modules = {}
4444

4545
@t.overload
46-
def bind(
47-
self, name_or_func: str
48-
) -> (
49-
t.Callable[[t.Type[T]], t.Type[T]]
50-
| t.Callable[[t.Callable[..., T]], t.Callable[..., T]]
51-
): ...
46+
def bind(self, name_or_func: str) -> t.Callable[
47+
[t.Type[T] | t.Callable[..., T]],
48+
t.Type[T] | t.Callable[..., T],
49+
]: ...
5250

5351
@t.overload
5452
def bind(self, name_or_func: t.Callable[..., T]) -> t.Callable[..., T]: ...
@@ -64,8 +62,10 @@ def bind(
6462
def bind(
6563
self, name_or_func: str | t.Callable[..., T] | t.Type[T] | None = None
6664
) -> (
67-
t.Callable[[t.Type[T]], t.Type[T]]
68-
| t.Callable[[t.Callable[..., T]], t.Callable[..., T]]
65+
t.Callable[
66+
[t.Type[T] | t.Callable[..., T]],
67+
t.Type[T] | t.Callable[..., T],
68+
]
6969
| t.Callable[..., T]
7070
| t.Type[T]
7171
):

0 commit comments

Comments
 (0)