ripe-cpu-85141
08/06/2022, 1:59 AM--namespace-packages
mypy doesn't find the imports, and if I put the option, mypy says my module was found twice (namespace_name.package_name.module and package_name.module).ripe-cpu-85141
08/06/2022, 2:49 AM./pants check ::
should show the issuewide-midnight-78598
08/06/2022, 3:09 AM__init__.py
wide-midnight-78598
08/06/2022, 3:09 AMsrc/turbocorp/___init___.py
seems to solve the problemwide-midnight-78598
08/06/2022, 3:10 AM[mypy]
namespace_packages = True
# Strictness
strict = True
# Error output
show_column_numbers = True
show_error_context = True
show_error_codes = True
show_traceback = True
pretty = True
color_output = True
error_summary = True
wide-midnight-78598
08/06/2022, 3:12 AMripe-cpu-85141
08/06/2022, 3:39 AM__init__.py
file.bitter-ability-32190
08/06/2022, 10:41 AMripe-cpu-85141
08/06/2022, 1:20 PM__init__.py
.
That said, I'll try pkgutil style namespace, I don't need to package my thing for a linux distrib 🙂
A summary of the different namespace styles:
https://packaging.python.org/en/latest/guides/packaging-namespace-packages/bitter-ability-32190
08/06/2022, 1:53 PMwide-midnight-78598
08/07/2022, 12:23 AMripe-cpu-85141
08/07/2022, 2:20 PMenough-analyst-54434
08/20/2022, 6:20 PM[mypy]
namespace_packages = true
explicit_package_bases = true
enough-analyst-54434
08/20/2022, 6:22 PM