diff options
Diffstat (limited to 'docs/reference.rst')
-rw-r--r-- | docs/reference.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/reference.rst b/docs/reference.rst index 7c91200..58aa320 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -76,6 +76,16 @@ Representing a version (the Version class) >>> str(Version('1.1.1')) '1.1.1' +.. class:: Version(major: int, minor: int, patch: int, prereleases: tuple, build: tuple[, partial=False]) + + Constructed from named components: + + .. code-block:: pycon + + >>> Version(major=1, minor=2, patch=3) + Version('1.2.3') + + .. rubric:: Attributes |