Repository navigation
Linting: ty: resolve typechecking failures - #14239
jayaddison wants to merge 6 commits into
Conversation
These have been reported as an upstream bug in `ty`: - astral-sh/ty#1970
NB: I'm surprised that `ty` does not also report an instance of the `no-matching-overload` rule at this location, because there is use of `sorted(...)` with keywords. It doesn't report that, though - so I figure it's probably better to omit it from the ignore-list. Either it is fixed upstream and never reports a problem, or it does begin reporting as an error and can be ignored. Relates-to commit b2305e6.
Relates-to commit eee7b09.
|
There was one reoccurrence of Windows continuous integration bug #12038 at commit eee7b09: https://github.com/sphinx-doc/sphinx/actions/runs/20698476422/job/59417236220#step:9:2564 @AA-Turner do you think it is worth unlocking and reopening that bug? |
|
how did the unpinned linters? merging PRs with failing jobs? |
It's a regression in a more-recent version of Line 133 in cc7c6f4 |
|
@jayaddison, worth pinning |
Seems reasonable to me, for development environment consistency. AFAIK Dependabot is able to find and update versions pinned in |
|
Thanks @danieleades |
|
@AA-Turner it would be really good to get this merged, as this is breaking CI for all open PRs |
|
Note: there have been a few updates to |
|
Note: from v0.0.11 of |
|
It looks like mypy doesn't warn about unused ignores by default: https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-warn-unused-ignores. |
|
Thanks @m-aciek - I'll try to figure out what to do (or not to do) about those unused ignore statements soon. As you noticed there are a couple of other CI fix pull requests available now too, so I'll take some time to compare with those. |
|
Closing as superseded by #14538 (planned-in for the v9.1.1 release). |
Purpose
Aims to restore a passing result from the
tylinting job, by fixing some false-positive error reports, so that commits and pull requests are not misleadingly marked as failures.Does this by:
ty.tomlconfiguration file, deactivatingnot-subscriptablerulechecking.no-matching-overloadwith list/sorted andmap/filterastral-sh/ty#1970NB: Also pins the version of
ty, to improve development environment typechecking consistency.References
Edit: update description to mention added version-pinning.