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

[Bug] Can not find type hints for Hydra #657

Closed
shagunsodhani opened this issue Jun 8, 2020 · 0 comments · Fixed by #658
Closed

[Bug] Can not find type hints for Hydra #657

shagunsodhani opened this issue Jun 8, 2020 · 0 comments · Fixed by #658
Labels
bug Something isn't working
Milestone

Comments

@shagunsodhani
Copy link
Contributor

shagunsodhani commented Jun 8, 2020

🐛 Bug

Running mypy on a hydra app throws type errors.Skipping analyzing 'hydra': found module but no type hints or library stubs

To reproduce

** Minimal Code/Config snippet to reproduce **

  • Create a file, say test.py
  • Add a single line import hydra
  • Run mypy test.py

** Stack trace/error message **

/(hydra_types) ➜  ~ mypy test.py
test.py:1: error: Skipping analyzing 'hydra': found module but no type hints or library stubs
test.py:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Expected Behavior

Type tests should pass

System information

  • Hydra Version : Master and pip (1.0rc)
  • Python version : 3.7
  • Virtual environment type and version : Conda 4.5.8
  • Operating system : Linux

Additional context

https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-type-hints-for-third-party-library

@shagunsodhani shagunsodhani added the bug Something isn't working label Jun 8, 2020
@shagunsodhani shagunsodhani changed the title [Bug] [Bug] Can not find type hints for Hydra Jun 8, 2020
@omry omry added this to the 1.0.0 milestone Jun 8, 2020
@omry omry closed this as completed in #658 Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants