Skip to content

Add type annotations - #40

Merged
fabrizio-turchi merged 1 commit into
mainfrom
add_type_annotations
Mar 13, 2024
Merged

Add type annotations#40
fabrizio-turchi merged 1 commit into
mainfrom
add_type_annotations

Conversation

@ajnelson-nist

Copy link
Copy Markdown
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
Copy Markdown
MemberAuthor

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
Copy Markdown
MemberAuthor

This PR is ready for review and merge.

@ajnelson-nistajnelson-nist mentioned this pull request Mar 12, 2024
@ajnelson-nist

Copy link
Copy Markdown
MemberAuthor

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

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

@ajnelson-nist@fabrizio-turchi