-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix Support nested generics #20 #21
Merged
ThirVondukr
merged 20 commits into
ThirVondukr:main
from
nrbnlulu:fix-generic-dependencies
Jan 6, 2025
Merged
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f60ac71
fix Support nested generics #20
nrbnlulu b18fb9e
fix: update resolved type handling in InjectionContext and add uv.loc…
nrbnlulu 1fe2baf
fix: correct test to -> `test_nested_unresolved_generic`
nrbnlulu c63908c
Merge branch 'main' into fix-generic-dependencies
nrbnlulu 46e1815
fix: enhance generic type handling and add tests for nested concrete …
nrbnlulu 979b77f
fix: update get_typevars to return a list of TypeVars and enhance nes…
nrbnlulu da270e7
support resolve generic types that doesn't specify any type arguments.
nrbnlulu a195d68
fix lints
nrbnlulu 4554e0f
tests for py3.10 pass
nrbnlulu fac6f06
fix: test_partially_resolved_generic
nrbnlulu 5c621f9
lints
nrbnlulu de805a9
chore: add type ignores
nrbnlulu cd10640
fmt
nrbnlulu a891eb1
extract generic handling into function
ThirVondukr c82b742
move generic handling functions into `_features/generics.py`
ThirVondukr 458a729
only return generic dependencies from get_generic_parameter_map
ThirVondukr c9fedbd
use `__getitem__` instead of `[]` to create generic types
ThirVondukr d04d093
add comment for __getitem__ use
nrbnlulu bca283e
fix typo
ThirVondukr 1aecea7
remove unnecessary `dict.keys()` call
ThirVondukr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to find the usecase where I needed this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nrbnlulu TypeVar with default in new Python versions or all impls (after #22) for generic interface