Skip to content
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

Use new style metaclass to make InteliSence work #853

Open
AnikinNN opened this issue Jan 16, 2025 · 0 comments · May be fixed by #855
Open

Use new style metaclass to make InteliSence work #853

AnikinNN opened this issue Jan 16, 2025 · 0 comments · May be fixed by #855

Comments

@AnikinNN
Copy link

AnikinNN commented Jan 16, 2025

Feature description

Use metaclasses as it supposed to be in python

# StructuredRelBase: type = RelationshipMeta(
#     "RelationshipBase", (AsyncPropertyManager,), {}
# )

class StructuredRelBase(AsyncPropertyManager, metaclass=RelationshipMeta):
    pass

How this feature can improve the project?

This notation helps use inherited methods inside ide such as deflate, __properties__ etc. In addition IDE won't complain about unresolved reference

@mariusconjeaud mariusconjeaud linked a pull request Jan 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant