Skip to content

Only allow fractional numbers in the lowest order component#11

Merged
bolsote merged 5 commits intomasterfrom
bolsote/issue5
Jun 25, 2021
Merged

Only allow fractional numbers in the lowest order component#11
bolsote merged 5 commits intomasterfrom
bolsote/issue5

Conversation

@bolsote
Copy link
Copy Markdown
Owner

@bolsote bolsote commented Jun 24, 2021

This is required for full conformance to ISO/DIS 8601-1, as per section 4.4.3.2, "Format with designators".

bolsote added 3 commits June 24, 2021 21:40
They are due to the fact that types for arrow are now present. We now make
the int -> Decimal conversion in parse_datetime_duration() explicitly.
It is required for full conformance to ISO/DIS 8601-1.
@bolsote bolsote linked an issue Jun 24, 2021 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 24, 2021

Codecov Report

Merging #11 (13af3bf) into master (49b1bc6) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #11   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        14    +1     
  Lines          300       338   +38     
  Branches        44        52    +8     
=========================================
+ Hits           300       338   +38     
Impacted Files Coverage Δ
src/isoduration/parser/__init__.py 100.00% <100.00%> (ø)
src/isoduration/parser/exceptions.py 100.00% <100.00%> (ø)
src/isoduration/parser/util.py 100.00% <100.00%> (ø)
src/isoduration/parser/validation.py 100.00% <100.00%> (ø)
src/isoduration/types.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49b1bc6...13af3bf. Read the comment docs.

In the process, make it iterable; a nice side effect is that it's now
trivial to create a dictionary from a Duration.
@bolsote bolsote merged commit 9171d9a into master Jun 25, 2021
@bolsote bolsote deleted the bolsote/issue5 branch June 25, 2021 09:01
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.

Properly support decimal points

1 participant