Skip to content

Update ty results for v0.0.35#2282

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
charliermarsh:codex/update-ty-results-0.0.35
May 10, 2026
Merged

Update ty results for v0.0.35#2282
JelleZijlstra merged 1 commit into
python:mainfrom
charliermarsh:codex/update-ty-results-0.0.35

Conversation

@charliermarsh
Copy link
Copy Markdown
Contributor

No description provided.

@charliermarsh charliermarsh marked this pull request as ready for review May 10, 2026 19:10
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We pass all tests here, so I think "Pass" is accurate. However, I might add a notes field that points out that we currently only do the check for non-generic functions. (You'll need to regen the HTML file afterwards -- our conformance will be displayed as "Pass*" in the rendered HTML, and the notes message will display as a tooltip when folks hover over the cell.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I suspect ty isn't alone in that, type checkers are OK with https://github.com/JelleZijlstra/unsoundness/blob/main/examples/overload/generic_overlap.py#L6-L11 after all (we were just talking about that case on pydis).

Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood May 10, 2026

Choose a reason for hiding this comment

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

Right... ty is the only type checker not to complain about this, for example, though:

from typing import overload

@overload
def mixed_generic[T](x: T) -> T: ...
@overload
def mixed_generic(x: int) -> int: ...
def mixed_generic(x: str) -> object:
    return x

Multiplay gist: 10c760796b5da6d1614ec8341c0fc3bc

@JelleZijlstra JelleZijlstra merged commit 81b183c into python:main May 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants