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
Python runtime semantics is such that from .x import y leads to adding a name x to the parent module namespace, and mypy follows this semantics. But then there is a whole bunch of issues when "redefining" modules, see #1297. This particular one however, seems to be easier to solve, since we import twice exactly the same module, and normally mypy allows this.
tikzify/__init__.py:5: error: Name "foundation" is not defined
tikzify/__init__.py:6: error: Name "function_graph" is not defined
tikzify/__init__.py:7: error: Name "node_graph" is not defined
I believe this is different than #2135.
In this case, if I have a star import like...
#a.py
import * from b
import * from c
#b.py
from .x import y
#c.py
from .x import z
I get a "Name 'x' is already defined" error.
But the name x is not exported by b or c.
The text was updated successfully, but these errors were encountered: