You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The star import from
v20
instix2/__init__.py
causes thestix2.v20.base
module to be aliased atstix2.base
, which shadows the actualstix2/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 theSTIXJSONEncoder
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 fromv21
anyway.The text was updated successfully, but these errors were encountered: