-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
astral-sh/ruff
#22300Labels
conformancehelp wantedContributions especially welcomeContributions especially welcometyping semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc
Description
In order to fully pass the conformance suite for TypeIs and TypeGuard, we need to add some extra validations of functions annotated with a TypeIs or TypeGuard return type.
- The function should accept exactly one parameter (not counting
selforclsif it's a method / classmethod). - For
TypeIs, the type parameter of theTypeIsreturn type must be assignable to the annotated type of the single parameter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
conformancehelp wantedContributions especially welcomeContributions especially welcometyping semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc