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

Support reading metadata of committed datatypes #96

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented Aug 26, 2024


def metadata(self, depth=None):
"""
:returns: {"attributes": AttributeMetadata, "kind": str, "name": str, "type": TypeMetadata}
Copy link
Member

@loichuder loichuder Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since our minimal Python version is 3.8, we can now make this a proper type hint with TypedDict

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll try to do it in a separate PR.

@axelboc axelboc merged commit 922dc0f into main Aug 29, 2024
1 check passed
@axelboc axelboc deleted the committed-datatype branch August 29, 2024 07:03
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 this pull request may close these issues.

2 participants