Skip to content

Recognise TypeVar, ParamSpec and TypeVarTuple in Python Patterns - #388

Open
FrancescoPezzella wants to merge 1 commit into
mainfrom
factory-types
Open

FrancescoPezzella wants to merge 1 commit into
mainfrom
factory-types

Conversation

@FrancescoPezzella

@FrancescoPezzella FrancescoPezzella commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Relates to #387 - until that is fixed, this is the way

…patterns, so [$$tps] matches any number of type parameters and $t captures a node.
@FrancescoPezzella FrancescoPezzella self-assigned this Nov 6, 2026
@FrancescoPezzella FrancescoPezzella added the enhancement New feature or request label Nov 6, 2026
@FrancescoPezzella

Copy link
Copy Markdown
Collaborator Author

Lint budget will fail due to match_pattern and PatternMatch.expansions not having types. Every time my tests use them, the lint budget will go up. Asking for exception.

@pjljvandelaar pjljvandelaar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the increase is due to the test code only, you can increase the budget.
Since, in that case, the problem is in the code, and the test code just shows that once more.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants