Skip to content

Commit 2a95a6d

Browse files
ikonstAlexWaygood
andauthored
Update mypy/checker.py
Co-authored-by: Alex Waygood <[email protected]>
1 parent 82e8c8c commit 2a95a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6969,7 +6969,7 @@ def is_literal_not_implemented(n: Expression) -> bool:
69696969
def _is_empty_generator_function(func: FuncItem) -> bool:
69706970
"""
69716971
Checks whether a function's body is 'return; yield' (the yield being added only
6972-
to promote the function into a generator).
6972+
to promote the function into a generator function).
69736973
"""
69746974
body = func.body.body
69756975
return (

0 commit comments

Comments
 (0)