[ty] Support attribute-expression TYPE_CHECKING conditionals by AlexWaygood · Pull Request #21449 · astral-sh/ruff (original) (raw)
added the ty
Multi-file analysis & type inference
label
dcreager added a commit that referenced this pull request
- origin/main: (59 commits)
[ty] Improve diagnostic range for
non-subscriptablediagnostics (#21461) [ty] Improve literal promotion heuristics (#21439) [ty] Further improve details around which expressions should be deferred in stub files (#21456) [ty] Improve generic class constructor inference (#21442) [ty] Propagate type context through conditional expressions (#21443) [ty] Suppress completions when introducing names withas[ty] Add panic-by-default await methods toTestServer(#21451) [ty] name is parameter and global is a syntax error (#21312) [ty] Fixup a few details around version-specific dataclass features (#21453) [ty] Support attribute-expressionTYPE_CHECKINGconditionals (#21449) [ty] Support stringified annotations in value-positionAnnotatedinstances (#21447) [ty] Type inference for genererator expressions (#21437) [ty] Make__getattr__available forModuleTypeinstances (#21450) [ty] Increase default receive timeout in tests to 10s (#21448) [ty] Add synthetic members to completions on dataclasses (#21446) [ty] Support legacytypingspecial forms in implicit type aliases (#21433) Bump 0.14.5 (#21435) [ty] Supporttype[…]andType[…]in implicit type aliases (#21421) [ty] Respect notebook cell boundaries when adding an auto import (#21322) Update PyCharm setup instructions (#21409) ...
dcreager added a commit that referenced this pull request
- dcreager/deep-comparison: (64 commits)
assuming
SubtypingAssuming
implies_subtype_of
name tweak
Apply suggestions from code review
[ty] Improve diagnostic range for
non-subscriptablediagnostics (#21461) [ty] Improve literal promotion heuristics (#21439) [ty] Further improve details around which expressions should be deferred in stub files (#21456) [ty] Improve generic class constructor inference (#21442) [ty] Propagate type context through conditional expressions (#21443) [ty] Suppress completions when introducing names withas[ty] Add panic-by-default await methods toTestServer(#21451) [ty] name is parameter and global is a syntax error (#21312) [ty] Fixup a few details around version-specific dataclass features (#21453) [ty] Support attribute-expressionTYPE_CHECKINGconditionals (#21449) [ty] Support stringified annotations in value-positionAnnotatedinstances (#21447) [ty] Type inference for genererator expressions (#21437) [ty] Make__getattr__available forModuleTypeinstances (#21450) [ty] Increase default receive timeout in tests to 10s (#21448) [ty] Add synthetic members to completions on dataclasses (#21446) ...
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 }})