Skip to content

Commit 5a4b101

Browse files
committed
Fix type annotations
1 parent 797746a commit 5a4b101

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
@@ -268,12 +268,10 @@ def bind_module(
268268
return module
269269

270270
@t.overload
271-
def bind_default(
272-
self, name_or_func: str
273-
) -> (
274-
t.Callable[[t.Type[T]], t.Type[T]]
275-
| t.Callable[[t.Callable[..., T]], t.Callable[..., T]]
276-
): ...
271+
def bind_default(self, name_or_func: str) -> t.Callable[
272+
[t.Type[T] | t.Callable[..., T]],
273+
t.Type[T] | t.Callable[..., T],
274+
]: ...
277275

278276
@t.overload
279277
def bind_default(
@@ -291,8 +289,10 @@ def bind_default(
291289
def bind_default(
292290
self, name_or_func: str | t.Callable[..., T] | t.Type[T] | None = None
293291
) -> (
294-
t.Callable[[t.Type[T]], t.Type[T]]
295-
| t.Callable[[t.Callable[..., T]], t.Callable[..., T]]
292+
t.Callable[
293+
[t.Type[T] | t.Callable[..., T]],
294+
t.Type[T] | t.Callable[..., T],
295+
]
296296
| t.Callable[..., T]
297297
| t.Type[T]
298298
):

0 commit comments

Comments
 (0)