2 ms·
> The language doesn't enforce them, so they may as well not exist. See: python dependency management. I see your point. You can enforce them with mypy by decl
by lijok 2y ago
> The language doesn't enforce them, so they may as well not exist. See: python dependency management.
I see your point. You can enforce them with mypy by declaring your exports in your __init__.py file, using the `as` aliasing method or using `__all__`: https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport https://mypy.readthedocs.io/en/stable/command_line.html#cmdo....