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

Give version2tuple() a better type annotation #208

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Dec 8, 2023

Also, remove superfluous function-level import of re (It's already imported at the top of the file).

Also, prevent the function from crashing when given a string with non-ASCII Unicode digits.

@jwodder jwodder added the patch Increment the patch version when merged label Dec 8, 2023
@jwodder jwodder requested a review from satra December 8, 2023 13:31
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (68f4d1e) 97.61% compared to head (f302d27) 97.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #208   +/-   ##
=======================================
  Coverage   97.61%   97.61%           
=======================================
  Files          17       17           
  Lines        1760     1760           
=======================================
  Hits         1718     1718           
  Misses         42       42           
Flag Coverage Δ
unittests 97.61% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Also, remove superfluous function-level import of `re` (It's already imported
at the top of the file).

Also, prevent the function from crashing when given a string with non-ASCII
Unicode digits.
@yarikoptic
Copy link
Member

LGTM, thanks!

@yarikoptic yarikoptic merged commit 3675319 into master Dec 8, 2023
76 checks passed
@yarikoptic yarikoptic deleted the v2tup-typ branch December 8, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants