Skip to content

Commit

Permalink
Document major, minor and macro attributes of Version (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshks committed Apr 2, 2020
1 parent a9f31ee commit 9731c00
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ Reference
version number, including trailing zeroes but not including the epoch
or any prerelease/development/postrelease suffixes

.. attribute:: major

An integer representing the first item of :attr:`release` or ``0`` if unavailable.

.. attribute:: minor

An integer representing the second item of :attr:`release` or ``0`` if unavailable.

.. attribute:: micro

An integer representing the third item of :attr:`release` or ``0`` if unavailable.

.. attribute:: local

A string representing the local version portion of this ``Version()``
Expand Down

0 comments on commit 9731c00

Please sign in to comment.