PEP 484: Fix a typo in code example (GH-591)

This commit is contained in:
Mariatta 2018-03-13 09:43:20 -07:00 committed by GitHub
parent a77cd1a99c
commit 941b0580b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ Additionally, ``Any`` is a valid value for every type variable.
Consider the following::
def count_truthy(elements: List[Any]) -> int:
return sum(1 for elem in elements if element)
return sum(1 for elem in elements if elem)
This is equivalent to omitting the generic notation and just saying
``elements: List``.