File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments