parameters: (py_version: PythonVersion)
docstring: Yields Python versions in descending order.
  
      After the latest version, the major-only version will be yielded, and then
      all previous versions of that major version.
docstring_summary: Yields Python versions in descending order.
docstring_tokens: Yields Python versions in descending order .
function: def _py_interpreter_range(py_version: PythonVersion) -> Iterator[str]:
      """
      Yields Python versions in descending order.
  
      After the latest version, the major-only version will be yielded, and then
      all previous versions of that major version.
      """
      if len(py_version) > 1:
          yield "py{version}".format(version=_version_nodot(py_version[:2]))
      yield "py{major}".format(major=py_version[0])
      if len(py_version) > 1:
          for minor in range(py_version[1] - 1, -1, -1):
              yield "py{version}".format(version=_version_nodot((py_version[0], minor)))
function_tokens: def _py_interpreter_range ( py_version : PythonVersion ) -> Iterator [ str ] : if len ( py_version ) > 1 : yield "py{version}" . format ( version = _version_nodot ( py_version [ : 2 ] ) ) yield "py{major}" . format ( major = py_version [ 0 ] ) if len ( py_version ) > 1 : for minor in range ( py_version [ 1 ] - 1 , - 1 , - 1 ) : yield "py{version}" . format ( version = _version_nodot ( ( py_version [ 0 ] , minor ) ) )