Skip to content

Conversation

JelleZijlstra
Copy link
Contributor

@JelleZijlstra JelleZijlstra commented Aug 23, 2025

Part of astral-sh/ty#994

Summary

Add new special forms to ty_extensions, Top[T] and Bottom[T]. Remove ty_extensions.top_materialization and ty_extensions.bottom_materialization.

Test Plan

Converted the existing materialization.md mdtest to the new syntax. Added some tests for invalid use of the new special form.

Copy link
Contributor

github-actions bot commented Aug 23, 2025

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@JelleZijlstra JelleZijlstra marked this pull request as ready for review August 23, 2025 01:09
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Aug 23, 2025
Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

🚀

@carljm carljm merged commit ec86a4e into astral-sh:main Aug 23, 2025
39 checks passed
@JelleZijlstra JelleZijlstra deleted the top-special-form branch August 24, 2025 12:54
second-ed pushed a commit to second-ed/ruff that referenced this pull request Sep 9, 2025
…ion_of() function (astral-sh#20054)

Part of astral-sh/ty#994

## Summary

Add new special forms to `ty_extensions`, `Top[T]` and `Bottom[T]`.
Remove `ty_extensions.top_materialization` and
`ty_extensions.bottom_materialization`.

## Test Plan

Converted the existing `materialization.md` mdtest to the new syntax.
Added some tests for invalid use of the new special form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants