class_docstr: This class abstracts handling of a project's versions.
  
  A :class:`Version` instance is comparison aware and can be compared and
  sorted using the standard Python interfaces.
  
  >>> v1 = Version("1.0a5")
  >>> v2 = Version("1.0")
  >>> v1
  <Version('1.0a5')>
  >>> v2
  <Version('1.0')>
  >>> v1 < v2
  True
  >>> v1 == v2
  False
  >>> v1 > v2
  False
  >>> v1 >= v2
  False
  >>> v1 <= v2
  True
docstr: The first item of :attr:`release` or ``0`` if unavailable.
  
  >>> Version("1.2.3").major
  1
docstr_tok: ["The","first","item","of",":","attr",":","`","release","`","or","``","0","``","if","unavailable",".",">",">",">","Version","(","``","1.2.3","''",")",".major","1"]
code: def major(self) -> int:
      """The first item of :attr:`release` or ``0`` if unavailable.
  
      >>> Version("1.2.3").major
      1
      """
      return self.release[0] if len(self.release) >= 1 else 0
  
imports: import collections
  import itertools
  import re
  from typing import Any, Callable, Optional, SupportsInt, Tuple, Union
  from ._structures import Infinity, InfinityType, NegativeInfinity, NegativeInfinityType
label_desc: Use image node_id 15 for calling the Version obj's underlying member method code with example usage: obj.major() and returns: unknown