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

GitHub noreply at github.com
Wed Apr 26 10:25:38 EDT 2017


  Branch: refs/heads/3.6
  Home:   https://github.com/python/cpython
  Commit: 04f389b8b357c8507b6c9642adcb8b956489e034
      https://github.com/python/cpython/commit/04f389b8b357c8507b6c9642adcb8b956489e034
  Author: Berker Peksag <berker.peksag 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.

(cherry picked from commit 87c07fe9d908d0a2143fcc8369255c6ff3241503)




More information about the Python-checkins mailing list