-
-
Notifications
You must be signed in to change notification settings - Fork 327
fix: type propogation through provided #733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
fc4998b
68be7ec
b547a9e
839de5d
185a491
a3bca54
2d2b8f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,7 @@ def create(cls) -> Animal: | |
|
||
# Test 5: to check the provided instance interface | ||
provider5 = providers.Callable(Animal) | ||
provided5: providers.ProvidedInstance = provider5.provided | ||
attr_getter5: providers.AttributeGetter = provider5.provided.attr | ||
item_getter5: providers.ItemGetter = provider5.provided["item"] | ||
method_caller: providers.MethodCaller = provider5.provided.method.call(123, arg=324) | ||
ZipFile marked this conversation as resolved.
Show resolved
Hide resolved
|
||
provided5: Animal = provider5.provided | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test is not exactly correct. The attribute To make a correct typing test with the provided5: Animal = provider5.provided() At least, that would be what the library actually does. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rmk135 updated the tests with cc @philipbjorge thanks for flagging |
||
|
||
# Test 6: to check the DelegatedCallable | ||
provider6 = providers.DelegatedCallable(Cat) | ||
|
Uh oh!
There was an error while loading. Please reload this page.