Logo
Explore Help
Sign In
Python/ruff
1
0
Fork 0
You've already forked ruff
mirror of https://github.com/astral-sh/ruff synced 2026-01-22 14:00:51 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
e45f23b0ec1efd093c6588f9b7d56bf87c4eebae
ruff/crates/red_knot_python_semantic
History
Matthew Mckee e45f23b0ec [red-knot] Class literal __new__ function callable subtyping (#17533)
## Summary

From
https://typing.python.org/en/latest/spec/constructors.html#converting-a-constructor-to-callable

this covers step 2 and partially step 3 (always respecting the
`__new__`)

## Test Plan

Update is_subtype_of.md

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2025-04-22 22:40:33 -07:00
..
resources
[red-knot] Class literal __new__ function callable subtyping (#17533)
2025-04-22 22:40:33 -07:00
src
[red-knot] Class literal __new__ function callable subtyping (#17533)
2025-04-22 22:40:33 -07:00
tests
[red-knot] Add GitHub PR annotations when mdtests fail in CI (#17150)
2025-04-02 21:51:52 +01:00
build.rs
Modernize build scripts (#13837)
2024-10-20 22:35:35 +01:00
Cargo.toml
[red-knot] Add a test to ensure that KnownClass::try_from_file_and_name() is kept up to date (#16326)
2025-02-24 12:14:20 +00:00
mdtest.py
mdtest.py: do a full mdtest run immediately when the script is executed (#17128)
2025-04-01 19:27:55 +01:00
mdtest.py.lock
[red-knot] Markdown test runner (#15632)
2025-01-21 14:06:35 +01:00
Powered by Gitea Version: 1.25.3 Page: 167ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API