From 870060605e3955114766a979de1afadbea4dc603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Sat, 24 Aug 2019 14:57:46 +0200 Subject: Deprecate support for 'partial' versions. Their comparison semantics were ill-defined, and mostly an implementation detail for the old, 'native' specs. --- README.rst | 8 -------- 1 file changed, 8 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 2adef1b..ef824ea 100644 --- a/README.rst +++ b/README.rst @@ -103,14 +103,6 @@ If the provided version string is invalid, a :exc:`ValueError` will be raised: raise ValueError('Invalid version string: %r' % version_string) ValueError: Invalid version string: '0.1' -In order to define "relaxed" version strings, you must pass in ``partial=True``: - -.. code-block:: pycon - - >>> v = semantic_version.Version('0.1', partial=True) - >>> list(v) - [0, 1, None, None, None] - Obviously, :class:`Versions ` can be compared: -- cgit v1.2.1