Skip to content

[ty] Add quotes to related issues links#23720

Merged
MichaReiser merged 2 commits intoastral-sh:mainfrom
MeGaGiGaGon:add-quotes-to-ty-related-issues-link
Mar 5, 2026
Merged

[ty] Add quotes to related issues links#23720
MichaReiser merged 2 commits intoastral-sh:mainfrom
MeGaGiGaGon:add-quotes-to-ty-related-issues-link

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Github returns a bunch of unrelated results if you search without quotes. This PR adds quotes to the search (%22 is a url-encoded ")

For example on call-top-callable, without quotes you get 11 results, most of which are unrelated:
https://github.com/astral-sh/ty/issues?q=sort%3Aupdated-desc%20is%3Aissue%20is%3Aopen%20call-top-callable
But with quotes, you only get the two results that directly mention the error code:
https://github.com/astral-sh/ty/issues?q=sort%3Aupdated-desc%20is%3Aissue%20is%3Aopen%20%22call-top-callable%22

Test Plan

Completely untested, should hopefully Just Work ™️

@AlexWaygood AlexWaygood added documentation Improvements or additions to documentation ty Multi-file analysis & type inference labels Mar 4, 2026
(Hopefully this works since I did it manually since can't build ruff)
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

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

Nice, thank you! You suggested the same thing when I added this to Ruff (#21035 (comment)), but I didn't think to port it back to ty.

I'm happy to update the snapshots locally if the latest commit doesn't satisfy CI :)

@MichaReiser MichaReiser merged commit 50f8602 into astral-sh:main Mar 5, 2026
47 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the add-quotes-to-ty-related-issues-link branch March 5, 2026 18:46
carljm added a commit that referenced this pull request Mar 5, 2026
* main:
  Update conformance suite commit hash (#23746)
  conformance.py: Collapse the summary paragraph when nothing changed (#23745)
  [ty] Make inferred specializations line up with source types more better (#23715)
  Bump 0.15.5 (#23743)
  [ty] Render all changed diagnostics in conformance.py (#23613)
  [ty] Split deferred checks out of `types/infer/builder.rs` (#23740)
  Discover markdown files by default in preview mode (#23434)
  [ty] Use `HasOptionalDefinition` for `except` handlers (#23739)
  [ty] Fix precedence of `all` selector in TOML configurations (#23723)
  [ty] Make `all` selector case sensitive (#23713)
  [ty] Add a diagnostic if a `TypeVar` is used to specialize a `ParamSpec`, or vice versa (#23738)
  [ty] Override home directory in ty tests (#23724)
  [ty] More type-variable default validation (#23639)
  [ty] Validate bare ParamSpec usage in type annotations, and support stringified ParamSpecs as the first argument to `Callable` (#23625)
  [ty] Add `all` selector to ty.json's `schema` (#23721)
  [ty] Add quotes to related issues links (#23720)
  [ty] Fix panic on incomplete except handlers (#23708)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants