Skip to content

Upgrade type review #2

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 2 commits into from
Jul 31, 2022
Merged

Upgrade type review #2

merged 2 commits into from
Jul 31, 2022

Conversation

ajnelson-nist
Copy link
Member

@ajnelson-nist ajnelson-nist commented Jul 31, 2022

The commits' log messages contain descriptions of changes.

`mypy --strict` can make use of type signatures released as of
rdflib 6.2.0.

Signed-off-by: Alex Nelson <[email protected]>
`mypy --strict` will raise review errors on seeing functions without
return types.

`mypy` in non-strict mode will not do type analysis unless functions are
in the path of a goal.  Typically assigning a return signature
`def main() -> None` will identify all functions on the call paths of
`main`.

This patch maintains `mypy` review passing.  `mypy --strict` requires
other revisions.

Signed-off-by: Alex Nelson <[email protected]>
@ajnelson-nist ajnelson-nist marked this pull request as ready for review July 31, 2022 19:06
@ajnelson-nist ajnelson-nist merged commit 7c8e35e into main Jul 31, 2022
@ajnelson-nist ajnelson-nist deleted the upgrade_type_review branch July 31, 2022 19:06
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.

1 participant