8 Commits

Author SHA1 Message Date
Tobias Hernstig e9e4c909d8 docs: Reference correct issue in FAQ regarding strict mode (#3385) 2026-05-01 08:35:39 -07: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 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
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
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
Carl Meyer 06b9838404 two new typing FAQ entries (#2126)
Add new FAQ entries about checking rule code docs, and `Top` types.
2025-12-20 09:00:14 -08:00
David Peter 75d61944b2 Typing FAQ: Attributes on Callable (#2055)
Add a new FAQ entry based on issues like
https://github.com/astral-sh/ty/issues/2038
2025-12-18 14:04:51 +01:00
David Peter c0ebde9c99 Add typing FAQ (#2006) 2025-12-17 14:20:38 +01:00