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

Add py.typed #991

Merged
merged 1 commit into from Mar 13, 2024
Merged

Add py.typed #991

merged 1 commit into from Mar 13, 2024

Conversation

LukasVik
Copy link
Contributor

So that code that uses VUnit can be type checked with mypy against VUnit's type hints.

See here for background: https://peps.python.org/pep-0561/

I verified that the file is included in the PyPI releases by running "python3 setup sdist" and checking that it was present in "vunit/py.typed" in the release zip.

@umarcor
Copy link
Member

umarcor commented Mar 11, 2024

@LukasVik this PR adds a single empty file. Is that intended?

@LukasVik
Copy link
Contributor Author

@umarcor Yes this is correct. The file just needs to exist as a marker, its content does not matter.

https://peps.python.org/pep-0561/#packaging-type-information

@umarcor
Copy link
Member

umarcor commented Mar 13, 2024

Nice! Please, add a news fragment and we can have this merged.

@LukasVik
Copy link
Contributor Author

Nice! Please, add a news fragment and we can have this merged.

@umarcor Done! Thank you!

So that code that uses VUnit can be type checked with mypy against VUnit's type hints.
@LukasVik
Copy link
Contributor Author

I reworded it, is better now.

@eine eine merged commit 407a46c into VUnit:master Mar 13, 2024
13 checks passed
@LukasVik LukasVik deleted the py_typed branch March 28, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants