ruff
acdda781 - [ty] Fix `@staticmethod` combined with other decorators incorrectly binding `self` (#22128)

Commit
55 days ago
[ty] Fix `@staticmethod` combined with other decorators incorrectly binding `self` (#22128) ## Summary We already had `CallableTypeKind::ClassMethodLike` to track callables that behave like `classmethods` (always bind the first argument). This PR adds the symmetric `CallableTypeKind::StaticMethodLike` for callables that behave like `staticmethods` (never bind `self`). Closes https://github.com/astral-sh/ty/issues/2114.
Author
Parents
Loading