Skip to content

[ty] more detailed description of "Size limit on unions of literals" in mdtest#21804

Merged
AlexWaygood merged 1 commit intoastral-sh:mainfrom
mtshiba:recursive-union-literal-doc
Dec 5, 2025
Merged

[ty] more detailed description of "Size limit on unions of literals" in mdtest#21804
AlexWaygood merged 1 commit intoastral-sh:mainfrom
mtshiba:recursive-union-literal-doc

Conversation

@mtshiba
Copy link
Collaborator

@mtshiba mtshiba commented Dec 5, 2025

Summary

This is a follow-up to #21683.

The description of "Size limit on union of literals" in mdtest/call/union.md has been revised, and a description of the behavior for recursively defined literal unions has been added.

Test Plan

mdtest/call/union.md has been updated.

@mtshiba mtshiba force-pushed the recursive-union-literal-doc branch from 3697371 to 285c515 Compare December 5, 2025 04:48
@AlexWaygood AlexWaygood added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Dec 5, 2025
Copy link
Contributor

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@AlexWaygood AlexWaygood merged commit 2f05ffa into astral-sh:main Dec 5, 2025
40 checks passed
dcreager added a commit that referenced this pull request Dec 5, 2025
* origin/main:
  [ty] Allow `tuple[Any, ...]` to assign to `tuple[int, *tuple[int, ...]]` (#21803)
  [ty] Support renaming import aliases (#21792)
  [ty] Add redeclaration LSP tests (#21812)
  [ty] more detailed description of "Size limit on unions of literals" in mdtest (#21804)
  [ty] Complete support for `ParamSpec` (#21445)
  [ty] Update benchmark dependencies (#21815)
@mtshiba mtshiba deleted the recursive-union-literal-doc branch December 6, 2025 01:50
dcreager added a commit that referenced this pull request Dec 7, 2025
* origin/main:
  [ty] Add test case for fixed panic (#21832)
  [ty] Avoid double-analyzing tuple in `Final` subscript (#21828)
  [flake8-bandit] Fix false positive when using non-standard `CSafeLoader` path (S506). (#21830)
  Add minimal-size build profile (#21826)
  [ty] Allow `tuple[Any, ...]` to assign to `tuple[int, *tuple[int, ...]]` (#21803)
  [ty] Support renaming import aliases (#21792)
  [ty] Add redeclaration LSP tests (#21812)
  [ty] more detailed description of "Size limit on unions of literals" in mdtest (#21804)
  [ty] Complete support for `ParamSpec` (#21445)
  [ty] Update benchmark dependencies (#21815)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants