mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
![]() ## Summary Add support for `@classmethod`s. ```py class C: @classmethod def f(cls, x: int) -> str: return "a" reveal_type(C.f(1)) # revealed: str ``` ## Test Plan New Markdown tests |
||
---|---|---|
.. | ||
resources | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
mdtest.py | ||
mdtest.py.lock |