KotlinIsland / KotlinIsland/basedmypy

support a `notabstract` decorator

Open
#753 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.