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

Respect ClassVar variable annotation #150

Merged
merged 2 commits into from
Apr 27, 2023

Commits on Apr 26, 2023

  1. Respect ClassVar variable annotation

    According to [PEP 526](https://peps.python.org/pep-0526/#class-and-instance-variable-annotations)
    annotated attributes in a class body are instance variables by default,
    unless explicitly overridden by using
    [`typing.ClassVar`](https://docs.python.org/3/library/typing.html#typing.ClassVar).
    
    Griffe also considers annotated attributes with a default value
    class variables.
    viccie30 committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    688e7b0 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. Configuration menu
    Copy the full SHA
    b8cc91b View commit details
    Browse the repository at this point in the history