Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 231998a

Browse files
authored
Fix a typo in the section about type hinting context managers (#4185)
1 parent 3f14175 commit 231998a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ they are not part of the stubbed API.
278278

279279
When adding type annotations for context manager classes, annotate
280280
the return type of `__exit__` as bool only if the context manager
281-
sometimes suppresses annotations -- if it sometimes returns `True`
281+
sometimes suppresses exceptions -- if it sometimes returns `True`
282282
at runtime. If the context manager never suppresses exceptions,
283283
have the return type be either `None` or `Optional[bool]`. If you
284284
are not sure whether exceptions are suppressed or not or if the

0 commit comments

Comments
 (0)