You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@AA-Turner do you have a preferred approach on how to get the CI tests passing again?
EDIT: my current opinion is that we should start with #14538 which gets ty passing with minimal work. bumping to v0.0.25 is a potential longer-term improvement but may take a lot of work. I have preserved my original comment below.
My vote is to bump up to ty v0.0.25 and use the known-good workaround for now (below) and then revisit in the future when a more elegant solution (hopefully) gets supported
Sphinx would need to update to ty v0.0.25 to access this new syntax
and pin it right? pin the version of ty to a fixed version, right?
it's mad that this repo is currently using an non fixed version of a linter that's in rapid development
Sphinx would need to update to ty v0.0.25 to access this new syntax
and pin it right? pin the version of ty to a fixed version, right? it's mad that this repo is currently using an non fixed version of a linter that's in rapid development
+1 to pinning since it's already burned us once and also because it's still v0.0.x as you mentioned
+1 we should merge #14538 as a preliminary step to get ty back to a healthy state
@picnixz if you agree could you help us merge #14538? The TL;DR is that the ty GitHub Actions check is broken. #14538 pins it to the latest version of ty that works well with Sphinx's configuration. Longer-term we should get to a newer version and implement more robust checking throughout the Sphinx codebase. Or switch to a different product (other contributors seem to prefer Pyrefly). But for the short-term it's causing a lot of friction to review/contribute Sphinx PRs while this check is always failing. #14538 gets the Sphinx runner back to a healthy state with minimal work. Furthermore the codebase is starting to get a lot of competing issues and PRs seeking to fix this failing ty check
CI is green again after #14538 merged and pinned ty==0.0.10. Now it is left to determine the next steps.
There are a couple older PRs, #14296 and #14328, that tried to address the ty errors that came from a newer version of ty, so if we decide to upgrade they can be revisited (although unsure if they should be closed at this point due to the pin).
Alternatively, there have been talks of replacing ty with Pyrefly in #14499
Even though updating to a more recent version of ty likely makes sense, I would tend towards suggesting we close this issue thread, because we do have typechecking passing in CI again (resolving the reported problem).
Activity
[-]ci: the 'ty' typechecking GitHub Actions workflow job is failing[/-][+]ci: the 'ty' typechecking is failing[/+]Fix typo in ty.toml: ``non-subscriptable`` → ``not-subscriptable``
Resolve remaining ty diagnostics
Resolve remaining ty diagnostics
kaycebasques commentedon Jun 17, 2026
@abitrolly did some research around this in discussion https://github.com/orgs/sphinx-doc/discussions/14405
Upstream
tyfeature request is here: astral-sh/ty#3127There is a proposal to map generic error names to
tynames (astral-sh/ty#3127 (comment)) but it's only a proposal so far.It seems like the workaround for now is something like this:
Sphinx would need to update to
tyv0.0.25 to access this new syntaxEDIT: my current opinion is that we should start with #14538
abitrolly commentedon Jun 18, 2026
Or ditch this
tyand replace it with Pyrefly from Meta which might not need these hacks .https://pyrefly.org/blog/v1.1/Replace failing `ty` with Pyrefly
kaycebasques commentedon Jun 26, 2026
@AA-Turner do you have a preferred approach on how to get the CI tests passing again?
EDIT: my current opinion is that we should start with #14538 which gets
typassing with minimal work. bumping to v0.0.25 is a potential longer-term improvement but may take a lot of work. I have preserved my original comment below.My vote is to bump up to
tyv0.0.25 and use the known-good workaround for now (below) and then revisit in the future when a more elegant solution (hopefully) gets supporteddanieleades commentedon Jun 29, 2026
and pin it right? pin the version of ty to a fixed version, right?
it's mad that this repo is currently using an non fixed version of a linter that's in rapid development
kaycebasques commentedon Jun 29, 2026
+1 to pinning since it's already burned us once and also because it's still v0.0.x as you mentioned
jdillard commentedon Jul 23, 2026
I think we should merge #14538 to pin
tyto0.0.10for now to get CI passing and then come up with a way to upgrade (or change) after that.kaycebasques commentedon Jul 24, 2026
+1 we should merge #14538 as a preliminary step to get
tyback to a healthy state@picnixz if you agree could you help us merge #14538? The TL;DR is that the
tyGitHub Actions check is broken. #14538 pins it to the latest version oftythat works well with Sphinx's configuration. Longer-term we should get to a newer version and implement more robust checking throughout the Sphinx codebase. Or switch to a different product (other contributors seem to prefer Pyrefly). But for the short-term it's causing a lot of friction to review/contribute Sphinx PRs while this check is always failing. #14538 gets the Sphinx runner back to a healthy state with minimal work. Furthermore the codebase is starting to get a lot of competing issues and PRs seeking to fix this failingtycheckjdillard commentedon Aug 8, 2026
CI is green again after #14538 merged and pinned
ty==0.0.10. Now it is left to determine the next steps.There are a couple older PRs, #14296 and #14328, that tried to address the
tyerrors that came from a newer version ofty, so if we decide to upgrade they can be revisited (although unsure if they should be closed at this point due to the pin).Alternatively, there have been talks of replacing
tywithPyreflyin #14499jayaddison commentedon Aug 10, 2026
Even though updating to a more recent version of
tylikely makes sense, I would tend towards suggesting we close this issue thread, because we do have typechecking passing in CI again (resolving the reported problem).jdillard commentedon Aug 11, 2026
I agree, best to start a new thread if we want to discuss how best to handle type checking.
jayaddison commentedon Aug 11, 2026
Thanks @jdillard