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

Raise an AttributeError when accessing a non-st attribute on _SpatialElement #240

Merged
merged 5 commits into from Jun 27, 2019

Conversation

elemoine
Copy link
Member

Supersedes #238

adrien-berchet and others added 5 commits June 27, 2019 16:07
Make _SpatialElement.__getattr__ raise an AttributeError when attempting
to access an attribute that does not start with "st_". This is to be nice
with 3rd-party librairies that use some duck-typing to determine the type
of of the element.
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.

None yet

2 participants