inspera/jsonschema-typed

Issue with mypy versions containing more than one '.'

Opened this issue · 0 comments

anjz commented

Hi there,
I've noticed that the following conversion is problematic when version has more than 1 decimal point. For example with version 1.0.0. That string can't be converted to float.

if float(version) < 0.7:

Maybe using a package like semver could be handy here.

Thanks