Skip to content

Commit

Permalink
Add test case for Provider.provider type propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZipFile committed Jan 12, 2025
1 parent de50666 commit 6d9d34c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/typing/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Test 1: to check .provided attribute
provider1: providers.Provider[int] = providers.Object(1)
provided: int = provider1.provided()
provider1_delegate: providers.Provider[int] = provider1.provider

# Test 2: to check async mode API
provider2: providers.Provider = providers.Provider()
Expand Down

0 comments on commit 6d9d34c

Please sign in to comment.