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

chore: update pre-commit pins and fix issues #836

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

henryiii
Copy link
Contributor

Bumps things like Ruff and MyPy and applied the simplest (minimal change) fixes for the issues. Longer term, asserts could remove some of the type ignores.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
if "ExceptionGroup" in builtins.__dict__: # pragma: no cover
ExceptionGroup = ExceptionGroup
else: # pragma: no cover
if "ExceptionGroup" not in builtins.__dict__: # pragma: no cover
Copy link
Contributor Author

@henryiii henryiii Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I flipped the order here to get the custom type to stick.

IMO, this should be if sys.version_info < (3, 11) instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, getting the type check right is tricky without it, so switching it to the version check now.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
src/packaging/metadata.py Outdated Show resolved Hide resolved
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