KotlinIsland / KotlinIsland/basedmypy
support a `notabstract` decorator
Open
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
class A(ABC):
@abstractmethod
@classmethod
def foo(): ...
@notabstract
@classmethod
def bar(cls):
print("hi")
A.foo() # should be an error
A.bar() # should be okay
```
maybe this could work for instances too, idk
related:
- #752
Contributor guide
Research direction
Start by reviewing related issue #752 and tracing how basedmypy handles abstractmethod and classmethod decorators. Completion would require a defined `notabstract` behavior for the shown class methods, with `A.foo()` rejected and `A.bar()` accepted; instance behavior remains unspecified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100