ruff/crates/ty_python_semantic/resources/mdtest/generics
Matthew Mckee e8ea40012a
[ty] Add generic inference for dataclasses (#18443)
## Summary

An issue seen here https://github.com/astral-sh/ty/issues/500

The `__init__` method of dataclasses had no inherited generic context,
so we could not infer the type of an instance from a constructor call
with generics

## Test Plan

Add tests to classes.md` in generics folder
2025-06-03 09:59:43 -07:00
..
legacy [ty] Add generic inference for dataclasses (#18443) 2025-06-03 09:59:43 -07:00
pep695 [ty] Add generic inference for dataclasses (#18443) 2025-06-03 09:59:43 -07:00
builtins.md [ty] Support using legacy typing aliases for generic classes in type annotations (#18404) 2025-06-03 12:09:51 +01:00
scoping.md [ty] Infer function call typevars in both directions (#18155) 2025-05-19 11:45:40 -04:00