Skip to content

Support type hints and py.typed #59

@bkeryan

Description

@bkeryan

Is your feature request related to a problem? Please describe.
Running mypy on a project that uses nisyscfg returns errors like this:

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

Describe the solution you'd like
Add type hints for the parts of nisyscfg that don't have them, and add a py.typed file so that clients using mypy or Pyright can benefit from nisyscfg's type hints.

Describe alternatives you've considered
None

Additional context
None

Workaround

[[tool.mypy.overrides]]
module = ["nisyscfg.*"]
ignore_missing_imports = true

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