Skip to content

Commit eafc81f

Browse files
authored
Merge pull request #110 from PerchunPak/patch-1
Fix type checking error while passing a lambda to `inject.configure`
2 parents 0fc1f58 + ef2e5bd commit eafc81f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inject/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def my_config(binder):
113113
Binding = Union[Type[Injectable], Hashable]
114114
Constructor = Callable[[], Injectable]
115115
Provider = Constructor
116-
BinderCallable = Callable[['Binder'], None]
116+
BinderCallable = Callable[['Binder'], Optional['Binder']]
117117

118118

119119
class ConstructorTypeError(TypeError):

0 commit comments

Comments
 (0)