[ty] Emit an error if a TypeVarTuple is used to subscript Generic or Protocol without being unpacked by AlexWaygood · Pull Request #22952 · astral-sh/ruff (original) (raw)
added the ty
Multi-file analysis & type inference
label
Base automatically changed from alex/fewer-646-false-positives to main
…r Protocol without being unpacked
carljm added a commit that referenced this pull request
- main: (76 commits)
[ty] Improve the check for
NewTypes with generic bases (#22961) [ty] Ban legacyTypeVarbounds or constraints from containing type variables (#22949) Bump the typing conformance suite pin (#22960) [ty] Emit an error if a TypeVarTuple is used to subscriptGenericorProtocolwithout being unpacked (#22952) [ty] Reduce false positives when subscripting classes generic overTypeVarTuples (#22950) [ty] Detect invalid attempts to subclassProtocol[]andGeneric[]simultaneously (#22948) Fix suppression indentation matching (#22903) Remove hidden--output-formatwarning (#22944) [ty] Validate signatures of dataclass__post_init__methods (#22730) [ty] extend special-casednumbersdiagnostic toinvalid-argument-typeerrors (#22938) [ty] Avoid false positive fornot-iterablewith no-positive intersection types (#22089) [ty] Preserve pure negation types in descriptor protocol (#22907) [ty] add special-case diagnostic fornumbersmodule (#22931) [ty] Move the location of moreinvalid-overloaddiagnostics (#22933) [ty] Fix unary and comparison operators for TypeVars with union bounds (#22925) [ty] Rule Selection: ignore/warn/select all rules (unless subsequently overriden) (#22832) [ty] Fix TypedDict construction from existing TypedDict values (#22904) [ty] fix bug in string annotations and clean up diagnostics (#22913) [ty] Improve support for goto-type, goto-declaration, hover, and highlighting of string annotations (#22878) [ty] Rename old typing imports to new onunresolved-reference. (#22827) ...
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
[ Show hidden characters]({{ revealButtonHref }})