]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-29974: Improve typing.TYPE_CHECKING example (GH-982)
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 26 Apr 2017 14:24:35 +0000 (17:24 +0300)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 14:24:35 +0000 (17:24 +0300)
commit271a289a03ad10c91c5326bde3020f1cdf6a1fff
tree5c6ce97c6ff83525c79111027b8eea3d9793b5a5
parentc7b8367076dc7771dabcb9491bd98218c788d489
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)
Doc/library/typing.rst