Skip to content

abstract and read only attributes #847

New issue

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

@KotlinIsland KotlinIsland marked this pull request as draft December 20, 2024 09:30
@KotlinIsland KotlinIsland force-pushed the abstract-attributes branch 2 times, most recently from f1ec195 to 95663de Compare January 2, 2025 17:12
@Loch64
Copy link

Loch64 commented Mar 3, 2025

what about:

@abstract
class A:
    @abstract
    def f(self): ...

class B:
    def f(self):
        print("hi")

class C(A, B):  # error, this is abstract
    pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants