175 Commits

Author SHA1 Message Date
Charlie Marsh d00448eb02 Bump version to 0.0.34 (#3392) 2026-05-01 18:19:06 -04:00
Tobias Hernstig e9e4c909d8 docs: Reference correct issue in FAQ regarding strict mode (#3385) 2026-05-01 08:35:39 -07:00
David Peter c512d84254 Bump version to 0.0.33 (#3368) 2026-04-28 12:25:49 +02:00
Carl Meyer d451af477b update typing-features and faqs (#3335)
Closes #3266.

This updates our typing-features and typing-faq docs to account for
recent changes in ty's behavior. Both the "gradual guarantee" and
"fixpoint iteration" sections no longer describe our actual behavior. In
both cases, I tried different ways to update the section, but ended up
feeling like there was nothing that distinctive or interesting to say,
so I just removed the sections entirely.

For gradual guarantee, I don't think we should have a section with that
name, since in general we don't take that as a guiding principle
anymore. The remaining singleton case is very niche, and already
discussed in the FAQ.

For fixpoint iteration, we still do that of course, but for performance
reasons we have since decided to promote literal unions much more
quickly in all cyclic cases. So I wasn't able to construct any realistic
case anymore where this "union of literals up to some limit" behavior is
visible.
2026-04-27 10:27:19 +02:00
David Peter 4d1e1fc57c Bump version to 0.0.32 (#3302) 2026-04-20 18:50:03 +02:00
Charlie Marsh daaa404549 Bump version to 0.0.31 (#3280) 2026-04-15 11:32:31 -04:00
Charlie Marsh 12e86b58b5 Bump version to 0.0.30 (#3270)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-04-14 09:37:46 -04:00
David Peter 67077ad5fb Reorder sections in FAQ (#3267)
Just a minor change to group all typing-related questions in one block.
2026-04-13 11:18:48 +02:00
Charlie Marsh 438a78d688 Bump version to 0.0.29 (#3218) 2026-04-05 10:46:41 -04:00
Charlie Marsh 927aad261f Bump version to 0.0.28 (#3206)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-04-02 21:19:36 +00:00
Charlie Marsh 5c9e342c2e Bump version to 0.0.27 (#3185)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-03-31 14:50:49 -04:00
Loïc Riegel d5c51ea65b docs: use content tabs (#3146)
## Summary

Add content tabs in the documentation, showing both `pyproject.toml` and
`ty.toml` variants. Same as in Ty's or Ruff’s documentation. Previously
only `pyproject.toml` was shown, which might lead people to think that
only this file is supported.

## Test Plan



Manual testing building the docs locally.
2026-03-26 10:09:05 -07:00
David Peter 9403051272 Bump version to 0.0.26 (#3145)
Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-03-26 17:10:55 +01:00
Charlie Marsh d60899a14f Bump version to 0.0.25 (#3125)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Carl Meyer <carl@astral.sh>
2026-03-24 22:16:36 +00:00
Micha Reiser db65b3e118 Update documentation to reflect type:ignore changes (#3121)
## Summary

Update the documentation to reflect the changes introduced in
https://github.com/astral-sh/ruff/pull/24096
2026-03-24 16:32:11 -04:00
Gal Buki 9e464322e6 Use ty in Emacs with Eglot (#3107)
## Summary

Add instructions on how to use ty with Emacs to the editors
documentation page.

## Test Plan

N/A
2026-03-23 16:16:04 +00:00
David Peter 876233049a Bump version to 0.0.24 (#3084)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-03-19 17:35:12 +01:00
David Peter 95150e7634 Typing FAQ: New entry explaining invariance (#3073)
## Summary

Now that we do not union in `Unknown` into element types of invariant
collections anymore, this question comes up more frequently. I'm taking
a first stab at trying to explain this in a concise way. I am also
planning to add a diagnostic hint that would be emitted in those
situations, which could refer to this FAQ entry.
2026-03-18 15:25:26 +01:00
Alex Waygood be6e94a27c Bump version to 0.0.23 (#3036) 2026-03-13 12:15:22 +00:00
Xin Zhao 26a6e34b9b docs: Update the Zed editor integration (#3017) 2026-03-13 08:31:37 +00:00
Alex Waygood eda1e71fc4 Bump version to 0.0.22 (#3031) 2026-03-12 17:23:24 +00:00
Charlie Marsh c1ad9f2813 Bump version to 0.0.21 (#2973)
Co-authored-by: Carl Meyer <carl@astral.sh>
2026-03-06 01:39:24 +00:00
Charlie Marsh 2bd0252435 Bump version to 0.0.20 (#2939)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-03-02 10:36:36 -05:00
Alex Waygood ae10022c20 Bump version to 0.0.19 (#2908)
Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
2026-02-26 11:56:49 +00:00
Charlie Marsh 6bdb7d7f45 Update Fathom code for ty (#2890)
## Summary

I just realized we're using the same code as in uv.
2026-02-23 23:18:38 -05:00
Carl Meyer 751672710c Bump version to 0.0.18 (#2869)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-02-20 13:34:18 -08:00
Andrew Gallant 8e86a5684f Mention code folding on language server feature page
I think it's a little tricky to show a meaningful screenshot for this,
so I left it out. We could do a video, but nothing else on this page
uses a video so I opted not to do it.
2026-02-19 12:12:03 -05:00
toby 31b126a590 docs: add link for the call hierarchy tracking issue (#2816)
## Summary

This just adds a link in the documentation to the corresponding to the
issue tracking call hierarchy feature (#1976 )

## Test Plan

The precommit hook passes, and when previewing the doc locally the
change appears correct (and this is only a change to documentation).
2026-02-14 14:51:52 -08:00
David Peter 8cec857182 [ty] Bump version to 0.0.17 (#2806)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-02-13 14:10:45 +01:00
Joel Ostblom 3650f58ffd docs: Clarify that nvim-lspconfig is the recommended way of using ty in all version of Neovim (#2785)
## Summary

Continuation of https://github.com/astral-sh/ty/pull/2762. This PR
clarifies that nvim-lspconfig is recommended for any version of Neovim
and lists the configuration for Neovim >=0.11 first since nvim-lspconfig
support for Neovim <0.11 is being deprecated.

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: Andrew Gallant <jamslam@gmail.com>
Co-authored-by: Andrew Gallant <andrew@astral.sh>
2026-02-11 14:36:27 -05:00
Andrew Gallant 55b8ff2055 Add note about fallback behavior to python in PATH (#2787)
Ref https://github.com/astral-sh/ruff/pull/22843#issuecomment-3884941254
2026-02-11 10:27:19 -05:00
Charlie Marsh e96ea4cd97 Bump version to 0.0.16 (#2779)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-02-10 15:07:22 -05:00
David Peter 044af7fda2 FAQ: Why doesn't ty warn about missing type annotations? (#2721)
## Summary

This came up multiple times on our issue tracker
(https://github.com/astral-sh/ty/issues/476 and duplicates thereof).
2026-02-05 15:26:48 +01:00
Charlie Marsh eb43dff062 Bump version to 0.0.15 (#2717)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-02-04 16:36:40 -08:00
David Peter 338058bfc9 Add instructions for how to run ty with Bazel (#2711)
## Summary

Add instructions for running ty via Bazel (using
https://registry.bazel.build/docs/aspect_rules_lint#lint-ty-bzl).

closes #2097
2026-02-04 17:12:52 +01:00
Matthew Mckee 3f490fa9ad Document configuration option for setting level for all rules (#2691)
Resolves #2670.
2026-02-02 09:18:04 -08:00
Charlie Marsh 16597f5e2c Bump version to 0.0.14 (#2632)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Carl Meyer <carl@astral.sh>
2026-01-26 19:42:03 -05:00
Micha Reiser fc1478bd96 Bump version to 0.0.13 (#2576)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-01-21 14:05:28 +01:00
Charlie Marsh 4b74e4ded2 Bump to 0.0.12 (#2500)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-01-14 17:14:04 -05:00
Dhruv Manilawala 11540c5a2f Update VS Code extension docs (#2475)
## Summary

Ref: https://github.com/astral-sh/ty-vscode/pull/288
2026-01-13 08:49:09 +00:00
Iain Stenson c7f64046dd Fix the docs links to the benchmark results (#2459)
## Summary

This PR corrects the HTML `<src=...>` attributes in `index.md` such that
they point to the right SVG files.

Note:

1. There is a bar chart on the docs home page
<https://docs.astral.sh/ty/>.
2. There are two SVG files and we choose which one to display depending
on the theme (light or dark).
3. We currently get:
1. `ty-benchmark-cli.svg`, if we use the light theme. This has light
writing, which cannot be seen against the light theme background.
2. `ty-benchmark-cli-dark.svg`, if we use the dark theme. This does not
exist.
4. This PR changes these links so that we use
`ty-benchmark-cli-light.svg` for the light theme and
`ty-benchmark-cli.svg` for the dark theme. Both of these images already
existed.

## Test Plan

We manually compare the before and after appearance of the docs site.

### Light

| before | after |
| - | - | 
| <img width="775" height="300" alt="Screenshot 2026-01-12 at 10 17 27"
src="https://github.com/user-attachments/assets/da3854d2-49fd-4a93-980b-2fd43c059155"
/> | <img width="736" height="390" alt="Screenshot 2026-01-12 at 10 21
47"
src="https://github.com/user-attachments/assets/35ae397f-163a-411d-9470-da1a727eb261"
/> |

### Dark

| before | after |
| - | - | 
| <img width="775" height="300" alt="Screenshot 2026-01-12 at 10 17 19"
src="https://github.com/user-attachments/assets/48f0f19a-e57b-4b64-89d0-08bad5bcef60"
/> | <img width="775" height="300" alt="Screenshot 2026-01-12 at 10 21
43"
src="https://github.com/user-attachments/assets/f6c2388b-acfa-4ff1-92fd-2428c9e80d84"
/> |

## To the reviewer

The `CONTRIBUTING.md` guidelines recommend running

```shell
npx prettier --prose-wrap always --write "**/*.md"
```

after editing any markdown files. However, this changes 24 files, not
only `index.md`. Should I run this as a separate commit, a separate PR
or neither?
2026-01-13 05:29:50 +00:00
Matthew Mckee 6b5938a5cb Stylize 'ty' correctly in zed configuration docs (#2458)
<!--
Thank you for contributing to ty! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary


https://github.com/astral-sh/ty?tab=readme-ov-file#how-should-i-stylize-ty
states that we should use "ty" rather than "Ty".
2026-01-12 10:36:25 +00:00
Mikhail Beliakov 22e97ecdd2 Add mise usage instructions to installation guide (#2252)
The tool was added to [mise](https://github.com/jdx/mise) registry with
https://github.com/jdx/mise/pull/7495 , and this commit updates the docs

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2026-01-09 16:04:30 -08:00
Charlie Marsh 830cb9cc67 Bump version to 0.0.11 (#2425) 2026-01-09 15:51:38 -05:00
Charlie Marsh c5d2a86b45 Remove dark-mode handling from PyPI-uploaded README (#2422)
## Summary

This matches the approach we use in Ruff.

Closes https://github.com/astral-sh/ty/issues/2322.
2026-01-09 15:35:26 -05:00
Aria Desires d18902cdcc Bump version to 0.0.10 (#2381)
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2026-01-07 16:53:41 -05:00
Micha Reiser f1652f05d8 Bump version to 0.0.9 (#2338)
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-01-05 11:15:23 +00:00
Micha Reiser aa7559db82 Bump version to 0.0.8 (#2256) 2025-12-29 14:35:18 +01:00
Matthew Mckee 3d7094f40f Add showSyntaxErrors editor setting (#2247)
## Summary

See https://github.com/astral-sh/ruff/pull/22217
2025-12-29 18:02:48 +05:30
Charlie Marsh cf82a04b57 Bump version to 0.0.7 (#2210) 2025-12-24 16:13:26 -05:00