Skip to content

Supporting MyPy static analizer #12

Description

@HamzaHajeir

Hi

I'm new to Python really, but as a C++ programmer, I really weight the static typing.

I heard of MyPy as type checking tool, so I've used it in my simple kinparse-based script.

Before diving into the errors log, I'd really thank you for this great library, if there's a suggestion is to support parts pins (if possible) nlst.parts[0].pins.

Returning to the error log:

LibManager.py:1: error: Skipping analyzing "kinparse": found module but no type hints or library stubs
LibManager.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
LibManager.py:12: error: "list" expects 1 type argument, but 2 given <<< Dismiss this >>>
LibManager.py:69: error: "List[Any]" has no attribute "name"
LibManager.py:87: error: "List[Any]" has no attribute "ref"
LibManager.py:93: error: "List[Any]" has no attribute "name"

Is there a way to help mypy doing it?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions