@fixmycode mypy type checking can report this error in your code:
iox3.py:3: error: Module "iox2" does not explicitly export attribute "y" [attr-defined]
which I think is roughly the problem you are encountering: an attribute in an imported module that wasn't explicitly defined in that module, but instead came from somewhere else.