`override` decorator doesn't report problems when paired with `cached_property` decorator
- Dominant language
- Python
- Stars
- 15.6k
- Forks
- 1.8k
- Avg merge
- 12h 13m
- Merged PRs (30d)
- 52
Description
Pyright doesn't report a problem for a method decorated with `cached_property` and `override` in a class even if no such method exists in the base class. Is this intended behaviour?
```python
from functools import cached_property
from typing import override
class A:
pass
class B(A):
@cached_property
@override
def should_override(self) -> int: # Should report a problem
return 0
```
Pylance 2025.9.1
Pyright 1.1.406
Contributor guide
Research direction
Start with the minimal Python example in the issue and run it through Pyright 1.1.406 to reproduce the missing diagnostic. Trace how Pyright handles `override` when it is paired with `functools.cached_property`; done means reporting that `should_override` has no matching member in base class A.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100