[ty] support __new__ return type in constructor calls by kitagry · Pull Request #22233 · astral-sh/ruff
Summary fix astral-sh/ty#281 When a class defines a __new__ method with a custom return type annotation, that return type is now used when calling the class constructor. Test Plan Added test cases.