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

Star import of v20 shadows stix2.base #399

Closed
maybe-sybr opened this issue May 25, 2020 · 0 comments · Fixed by #404
Closed

Star import of v20 shadows stix2.base #399

maybe-sybr opened this issue May 25, 2020 · 0 comments · Fixed by #404
Milestone

Comments

@maybe-sybr
Copy link
Contributor

The star import from v20 in stix2/__init__.py causes the stix2.v20.base module to be aliased at stix2.base, which shadows the actual stix2/base.py module meaning it can't be accessed from external code (and is probably order of execution dependent from internal imports). This makes it hard to access the STIXJSONEncoder class from my code which has been a bit of a pain. For the moment, I just comment out the star import since I'm using explicit imports from v21 anyway.

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