python-semanticversion icon indicating copy to clipboard operation
python-semanticversion copied to clipboard

Documentation disagrees with implementation about tuple/list for build and pre-release

Open duk3luk3 opened this issue 7 years ago • 1 comments

The Readme suggests that

semantic_version.Version('0.1.1').build

should be [], but in version 2.6.0 of semantic_version it is instead ().

This makes little practical difference in most cases, except when you do something like

if v.build == []:
    ...

which will never work.

duk3luk3 avatar Aug 08 '17 03:08 duk3luk3

Should be fixed when adding type hints, as per #138 — planned for version 3.0.

rbarrois avatar Feb 28 '23 16:02 rbarrois