[ty] Add hint about resolved Python version when a user attempts to import a member added on a newer version by AlexWaygood · Pull Request #21615 · astral-sh/ruff (original) (raw)
…mport a member added on a newer version
Multi-file analysis & type inference
label
Co-authored-by: Aria Desires aria.desires@gmail.com
dcreager added a commit that referenced this pull request
- origin/main: (27 commits)
[ty] Add hint about resolved Python version when a user attempts to import a member added on a newer version (#21615)
Use release commit for actions/checkout (#21610)
[ty] Add failing mdtest for known
Protocolpanic (#21594) [parser] Fix panic when parsing IPython escape command expressions (#21480) Fix cargo shear in CI (#21609) Update actions/checkout digest to c2d88d3 (#21601) Update dependency ruff to v0.14.6 (#21603) Update astral-sh/setup-uv action to v7.1.4 (#21602) Update Rust crate clap to v4.5.53 (#21604) Update taiki-e/install-action action to v2.62.56 (#21608) Update Rust crate hashbrown to v0.16.1 (#21605) Update Rust crate indexmap to v2.12.1 (#21606) Update Rust crate syn to v2.0.111 (#21607) [ty] Check method definitions on subclasses for Liskov violations (#21436) [ty] Fix panic for unclosed string literal in type annotation position (#21592) [ty] Fix rendering of unused suppression diagnostic (#21580) [ty] Improve lsp handling of hover/goto on imports (#21572) [ty] Improve diagnostics when a submodule is not available as an attribute on a module-literal type (#21561) [ty] Improve concise diagnostics for invalid exceptions when a user catches a tuple of objects (#21578) [ty] upgrade salsa (#21575) ...
dcreager added a commit that referenced this pull request
…d-typevar
- origin/main: (30 commits)
[ty] Double click to insert inlay hint (#21600)
[ty] Switch the error code from
unresolved-attributetopossibly-missing-attributefor submodules that may not be available (#21618) [ty] Substitute fortyping.Selfwhen checking protocol members (#21569) [ty] Don't suggest things that aren't subclasses ofBaseExceptionafterraise[ty] Add hint about resolved Python version when a user attempts to import a member added on a newer version (#21615) Use release commit for actions/checkout (#21610) [ty] Add failing mdtest for knownProtocolpanic (#21594) [parser] Fix panic when parsing IPython escape command expressions (#21480) Fix cargo shear in CI (#21609) Update actions/checkout digest to c2d88d3 (#21601) Update dependency ruff to v0.14.6 (#21603) Update astral-sh/setup-uv action to v7.1.4 (#21602) Update Rust crate clap to v4.5.53 (#21604) Update taiki-e/install-action action to v2.62.56 (#21608) Update Rust crate hashbrown to v0.16.1 (#21605) Update Rust crate indexmap to v2.12.1 (#21606) Update Rust crate syn to v2.0.111 (#21607) [ty] Check method definitions on subclasses for Liskov violations (#21436) [ty] Fix panic for unclosed string literal in type annotation position (#21592) [ty] Fix rendering of unused suppression diagnostic (#21580) ...
carljm added a commit to mtshiba/ruff that referenced this pull request
- main:
[ty] Extend Liskov checks to also cover classmethods and staticmethods (astral-sh#21598)
Dogfood ty on the
scriptsdirectory (astral-sh#21617) [ty] support generic aliases intype[...], liketype[C[int]](astral-sh#21552) [ty] Retain the function-like-ness ofCallabletypes when bindingself(astral-sh#21614) [ty] Distinguish "unconstrained" from "constrained to any type" (astral-sh#21539) Disable ty workspace diagnostics for VSCode users (astral-sh#21620) [ty] Double click to insert inlay hint (astral-sh#21600) [ty] Switch the error code fromunresolved-attributetopossibly-missing-attributefor submodules that may not be available (astral-sh#21618) [ty] Substitute fortyping.Selfwhen checking protocol members (astral-sh#21569) [ty] Don't suggest things that aren't subclasses ofBaseExceptionafterraise[ty] Add hint about resolved Python version when a user attempts to import a member added on a newer version (astral-sh#21615)
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 }})