Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support type hints and py.typed #59

Open
bkeryan opened this issue Jun 10, 2024 · 0 comments
Open

Support type hints and py.typed #59

bkeryan opened this issue Jun 10, 2024 · 0 comments

Comments

@bkeryan
Copy link

bkeryan commented Jun 10, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant