Skip to content

Add type annotations #40

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

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Add type annotations #40

merged 1 commit into from
Mar 13, 2024

Conversation

ajnelson-nist
Copy link
Member

With these annotations, the following command (with the package types-pytz also installed) reports no issues:

mypy case_mapping example.py tests

Adding type review to unit testing is left for a future patch series.

References:

Disclaimer:
Participation by NIST in the creation of the documentation of mentioned software is not intended to imply a recommendation or endorsement by the National Institute of Standards and Technology, nor is it intended to imply that any specific software is necessarily the best available for the purpose.

With these annotations, the following command (with the package
`types-pytz` also installed) reports no issues:

    mypy case_mapping example.py tests

Adding type review to unit testing is left for a future patch.

No effects were observed on Make-managed files.

References:
* https://docs.python.org/3/library/typing.html#the-type-of-class-objects

Disclaimer:
Participation by NIST in the creation of the documentation of mentioned
software is not intended to imply a recommendation or endorsement by the
National Institute of Standards and Technology, nor is it intended to
imply that any specific software is necessarily the best available for
the purpose.

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
@ajnelson-nist
Copy link
Member Author

I believe this does not impact #38 or #39.

@ajnelson-nist ajnelson-nist marked this pull request as ready for review March 12, 2024 20:41
@ajnelson-nist
Copy link
Member Author

This PR is ready for review and merge.

@ajnelson-nist
Copy link
Member Author

Adding type review to CI is in #41 . Merging that PR would merge this PR.

@fabrizio-turchi fabrizio-turchi merged commit c222086 into main Mar 13, 2024
@ajnelson-nist ajnelson-nist deleted the add_type_annotations branch June 11, 2025 18:29
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

Successfully merging this pull request may close these issues.

2 participants