Repository navigation
Type Parameter Modernization - #202
Draft
FrancescoPezzella wants to merge 108 commits into
Draft
FrancescoPezzella wants to merge 108 commits into
FrancescoPezzella wants to merge 108 commits into
Conversation
Collaborator
Author
|
Goal of this new PR:
In this way, I have managed to get rid of all the unnecessary clutter in Git History and also follow the workflow I saw other PRs follow. |
FrancescoPezzella
added this pull request to stack #203
September 21, 2026 12:52
Collaborator
Author
|
I am gonna try out this whole stacked thing, so my changes dont get blocked by some feature I could use. |
Closed
FrancescoPezzella
force-pushed
the
typing-recipes-2
branch
from
September 21, 2026 15:27
837a32c to
e392a36
Compare
FrancescoPezzella
force-pushed
the
typing-recipes-2
branch
from
September 23, 2026 07:55
e4ab32d to
ff4016f
Compare
FrancescoPezzella
force-pushed
the
typing-recipes-2
branch
3 times, most recently
from
September 30, 2026 11:56
eaeef61 to
f5168f2
Compare
FrancescoPezzella
force-pushed
the
typing-recipes-2
branch
from
October 2, 2026 14:35
b7ed437 to
6120c5c
Compare
Collaborator
Author
|
Names such as Type Hints and Type Var were rejected, such as Type Hints being too broad and covering list[int] etc which other tools such as Ruff already do, while Type Var being imprecise and not covering all the changes made here such as ParamSpec. I will from now on be referring to this as Type Parameter Modernization. |
FrancescoPezzella
force-pushed
the
typing-recipes-2
branch
2 times, most recently
from
October 9, 2026 09:39
1a6e17e to
a7d45be
Compare
5 tasks
FrancescoPezzella
force-pushed
the
typing-recipes-2
branch
from
October 12, 2026 13:27
bcb516c to
aae40f4
Compare
FrancescoPezzella
removed this pull request from stack #203
October 12, 2026 13:27
FrancescoPezzella
changed the base branch from
main
to
libcst-replace-framework
October 12, 2026 13:27
FrancescoPezzella
added this pull request to stack #277
October 12, 2026 13:28
FrancescoPezzella
added a commit
that referenced
this pull request
Oct 12, 2026
…clarations, that is just Step 3's job/ Generic is now fully ignored and not changed
…rameters. Type Vars can now be safely converted, even if the imports cannot be deleted (before it was all or nothing), now a partial fix is applied.
…CONFLICT`. Detect name conflicts in the file when localizing a Type Var with for example a bound=Box, where Box is already defined in the file.
…fely while the import in __all__ is kept.
…n Covariant/Contravariant/Bound is added to ParamSpec/TypeVarTuple, the change becomes unsafe since a modern syntax for it does not exist.
Fixes the conflicting-rewrite ValueError on `from x import T, U`; each needed import is added once.
…file The origin's `from ._compat import TypeVar` is now rewritten relative to the importing file instead of losing its dots.
…tected after a numerous amount of checks).
…ze_import, moving its relative-import and alias cases to the localization tests. Documented a bug with comments being lost.
FrancescoPezzella
force-pushed
the
typing-recipes-2
branch
2 times, most recently
from
October 13, 2026 08:21
d8c480f to
8ab7782
Compare
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR is about modernizing Type Parameters.