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

Use Optional type hints where appropriate #168

Merged
merged 3 commits into from
Jun 25, 2024
Merged

Conversation

lukasschwab
Copy link
Owner

@lukasschwab lukasschwab commented Jun 25, 2024

Description

  • Use Optional type hints where appropriate.
    • Retains the 'if present' docstring language: this appears in arXiv's API documentation.
    • There may be more fields that deserve this annotation; deciding to handle those in follow-up diffs.
  • Belatedly make format.

Breaking changes

List any changes that break the API usage supported on master.

None — only changes type hints. Optional[T] is an alias for T | None, which describes the existing data.

Relevant issues

List GitHub issues relevant to this change.

Checklist

  • (If appropriate) README.md example usage has been updated.

@lukasschwab lukasschwab merged commit c993d11 into master Jun 25, 2024
6 checks passed
@lukasschwab lukasschwab deleted the optional-types branch June 25, 2024 02:54
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.

Use Optional[T] for values that may not be present
1 participant