]> 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:25:37 +0000 (17:25 +0300)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 14:25:37 +0000 (17:25 +0300)
commit04f389b8b357c8507b6c9642adcb8b956489e034
treee37714f1e8eb6a04f2f5e7044b63eae3352194db
parent9f6828119df23fca9e799f47e02baabe87adca2a
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