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

remove __getitem__ from Mongoengine models #25

Closed
sbdchd opened this issue Apr 16, 2021 · 1 comment · Fixed by #45
Closed

remove __getitem__ from Mongoengine models #25

sbdchd opened this issue Apr 16, 2021 · 1 comment · Fixed by #45

Comments

@sbdchd
Copy link
Owner

sbdchd commented Apr 16, 2021

__getitem__ is typed to return Any since we don't have a way to derive overloads based off the class properties.

Instead of __getitem__ users can use getattr if they really want to access properties dynamically.

@chdsbd
Copy link
Collaborator

chdsbd commented Jun 3, 2021

Fixed by #45. 0.13.0 has this change

@chdsbd chdsbd closed this as completed Jun 3, 2021
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.

2 participants