metomi / isodatetime

:date: :watch: Python ISO 8601 date time parser and data model/manipulation utilities
GNU Lesser General Public License v3.0
37 stars 20 forks source link

Refactor TimePoint getters and fix decimal quantity dump rounding #187

Closed MetRonnie closed 3 years ago

MetRonnie commented 4 years ago

This branch was kicking around for a while; I probably meant to create a PR earlier.


MetRonnie commented 3 years ago

(The tests on Travis have passed, it's just Codacy complaining about an unassigned variable or something in a test)

oliver-sanders commented 3 years ago

BTW to make codacy happy just dedent that function and remove the unused self arg.

MetRonnie commented 3 years ago

Oh, codacy only shows the newest problem it has found with the code. Last time it was failing because of this expression-not-assigned (W0106). Trouble is, if you assign it, flake8 will flag it as an unused variable!

MetRonnie commented 3 years ago

@kinow just a reminder this is awaiting your review, no rush though