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

Complete type annotations and PEP 561 compatibility #432

Closed
mmaslowskicc opened this issue May 28, 2021 · 0 comments · Fixed by #434
Closed

Complete type annotations and PEP 561 compatibility #432

mmaslowskicc opened this issue May 28, 2021 · 0 comments · Fixed by #434
Assignees

Comments

@mmaslowskicc
Copy link
Collaborator

What action do you want to perform

I want to use mypy with my project which uses pytest-postgresql in its test suite while not using the Any type.

What are the results

tests/conftest.py:8: error: Skipping analyzing 'pytest_postgresql': found
module but no type hints or library stubs  [import]
    from pytest_postgresql import factories
    ^
tests/conftest.py:8: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports

What are the expected results

pytest-postgresql has inline type annotations, mypy finds them (https://mypy.readthedocs.io/en/stable/installed_packages.html#installed-packages) and correctly checks the types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants