[ty] Detect illegal non-enum attribute accesses in Literal annotation by sharkdp · Pull Request #19477 · astral-sh/ruff (original) (raw)
Multi-file analysis & type inference
label
sharkdp deleted the david/illegal-attribute-access-literal branch
dcreager added a commit that referenced this pull request
- main: (76 commits)
Move fix suggestion to subdiagnostic (#19464)
[ty] Implement non-stdlib stub mapping for classes and functions (#19471)
[ty] Disallow illegal uses of
ClassVar(#19483) [ty] DisallowFinalin function parameter/return-type annotations (#19480) [ty] ExtendFinaltest suite (#19476) [ty] Minor change to diagnostic message for invalid Literal uses (#19482) [ty] Detect illegal non-enum attribute accesses in Literal annotation (#19477) [ty] Reduce size ofTypeInference(#19435) Run MD tests for Markdown-only changes (#19479) Revert "[ty] Detect illegal non-enum attribute accesses in Literal annotation" [ty] Detect illegal non-enum attribute accesses in Literal annotation [ty] Added semantic token support for more identifiers (#19473) [ty] Make tuple subclass constructors sound (#19469) [ty] Pass down specialization to generic dataclass bases (#19472) [ty] Garbage-collect reachability constraints (#19414) [ty] Implicit instance attributes declaredFinal(#19462) [ty] Expansion of enums into unions of literals (#19382) [ty] Avoid rechecking the entire project when changing the opened files (#19463) [ty] Add warning for unknownTY_MEMORY_REPORTvalue (#19465) [ty] Sync vendored typeshed stubs (#19461) ...
dcreager added a commit that referenced this pull request
- main:
[ty] Use
ThinVecfor sub segments inPlaceExpr(#19470) [ty] Splat variadic arguments into parameter list (#18996) [flake8-pyi] Skip fix if allUnionmembers areNone(PYI016) (#19416) Skip notebook with errors in ecosystem check (#19491) [ty] Consistent use of American english (in rules) (#19488) [ty] Support iterating over enums (#19486) Fix panic for illegalLiteral[…]annotations with inner subscript expressions (#19489) Move fix suggestion to subdiagnostic (#19464) [ty] Implement non-stdlib stub mapping for classes and functions (#19471) [ty] Disallow illegal uses ofClassVar(#19483) [ty] DisallowFinalin function parameter/return-type annotations (#19480) [ty] ExtendFinaltest suite (#19476) [ty] Minor change to diagnostic message for invalid Literal uses (#19482) [ty] Detect illegal non-enum attribute accesses in Literal annotation (#19477) [ty] Reduce size ofTypeInference(#19435) Run MD tests for Markdown-only changes (#19479) Revert "[ty] Detect illegal non-enum attribute accesses in Literal annotation" [ty] Detect illegal non-enum attribute accesses in Literal annotation [ty] Added semantic token support for more identifiers (#19473) [ty] Make tuple subclass constructors sound (#19469)
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 }})