[Python-checkins] [python/cpython] 87c07f: bpo-29974: Improve typing.TYPE_CHECKING example (G...

GitHub noreply at github.com
Wed Apr 26 06:49:48 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 87c07fe9d908d0a2143fcc8369255c6ff3241503
      https://github.com/python/cpython/commit/87c07fe9d908d0a2143fcc8369255c6ff3241503
  Author: Mathias Rav <mathiasrav at gmail.com>
  Date:   2017-04-26 (Wed, 26 Apr 2017)

  Changed paths:
    M Doc/library/typing.rst

  Log Message:
  -----------
  bpo-29974: Improve typing.TYPE_CHECKING example (GH-982)

* Fix PEP 8 (SomeType instead of some_type)
* Add a function parameter annotation
* Explain, using wording from PEP 484 and PEP 526,
  why one annotation is in quotes and another is not.

Suggested by Ivan Levkevskyi.




More information about the Python-checkins mailing list