Skip Navigation
benc Ben Clifford @mastodon.hawaga.org.uk

Hi. I'm Ben.

For fun I ride my bike around Berlin and build pretty things with LEDs and microcontrollers.

I'm also interested in programming language design/theory stuff.

I help with a refugee reception volunteer group in Berlin for people arriving from Ukraine.

I like dogs.

http://www.hawaga.org.uk/ben/ https://github.com/benclifford https://twitter.com/benclifford

Posts 0
Comments 1
is there a way to prevent or alert in case a member is imported from within a module?
  • @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.