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

Declare soma_type as a class var rather than a property #102

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

thetorpedodog
Copy link
Contributor

When using @property declarations, the type system would not realize that in the implementation, soma_type could always be accessed as a class variable. This change just makes soma_type a class var and shuffles around some annotations to make that easier. The is_sparse field on NDArray is similarly updated.


This idea came to me in the shower.

When using `@property` declarations, the type system would not realize
that in the implementation, `soma_type` could always be accessed as a
class variable. This change just makes `soma_type` a class var and
shuffles around some annotations to make that easier. The `is_sparse`
field on `NDArray` is similarly updated.
@thetorpedodog thetorpedodog merged commit 9a957ee into main Jan 26, 2023
@thetorpedodog thetorpedodog deleted the soma-type-classvar branch January 26, 2023 15:03
@johnkerl johnkerl changed the title Declare soma_type as a class var rather than a property. Declare soma_type as a class var rather than a property Feb 23, 2023
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