We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relates to #5858 (fixed in #15926)
from typing import Callable class something_callable: def __init__(self, fn): self.fn = fn def __call__(self, decorated_self, extra1, extra2, extra3) -> str: return self.fn(decorated_self) # def __call__(self) is also bad def decorator(fn: Callable[..., int]) -> something_callable: return something_callable(fn) class A: @property @decorator def f(self) -> int: return 42
The text was updated successfully, but these errors were encountered:
@property
@lru_cache
No branches or pull requests
Relates to #5858 (fixed in #15926)
The text was updated successfully, but these errors were encountered: