type hints not correctly configured

Author: dpinolCreated Apr 3, 2025Updated Apr 9, 2026

When running mypy on a project using tensorboardX, you get this error

error: Skipping analyzing "tensorboardX": module is installed, but missing library
stubs or py.typed marker  [import-untyped]
    from tensorboardX import SummaryWriter

More info https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker