[ty] Introduce UnionType::try_from_elements and UnionType::try_map by AlexWaygood · Pull Request #18911 · astral-sh/ruff (original) (raw)
AlexWaygood changed the title
Introduce [ty] Introduce UnionType::try_from_elements and UnionType::try_mapUnionType::try_from_elements and UnionType::try_map
dcreager added a commit that referenced this pull request
- main:
[ty] Fix false positives when subscripting an object inferred as having an
Intersectiontype (#18920) [flake8-use-pathlib] Add autofix forPTH202(#18763) [ty] Add relative import completion tests [ty] Clarify what "cursor" means [ty] Add a cursor test builder [ty] Enforce sort order of completions (#18917) [formatter] Fix missing blank lines before decorated classes in .pyi files (#18888) Apply fix availability and applicability when adding toDiagnosticGuardand removeNoqaCode::rule(#18834) py-fuzzer: allow relative executable paths (#18915) [ty] Changeenvironment.rootto accept multiple paths (#18913) [ty] Renamesrc.rootsetting toenvironment.root(#18760) Use file path for detecting package root (#18914) Consider virtual path for various server actions (#18910) [ty] IntroduceUnionType::try_from_elementsandUnionType::try_map(#18911) [ty] Support narrowing onisinstance()/issubclass()if the second argument is a dynamic, intersection, union or typevar type (#18900) [ty] Add decorator check for implicit attribute assignments (#18587) [ruff] TriggerRUF037for empty string and byte strings (#18862) [ty] Avoid duplicate diagnostic in unpacking (#18897) [pyupgrade] Extend version detection to includesys.version_info.major(UP036) (#18633) [ruff] Frozen Dataclass default should be valid (RUF009) (#18735)
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 }})