Convert typing.ContextManager.exit to use dunder parameter names (#2980)

This commit is contained in:
Mark Mendoza authored and Jelle Zijlstra committed 2019-05-15 13:30:20 -07:00
1 parent 50d98acc76
commit 2cf4af784c
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -353,9 +353,9 @@ class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]):
@runtime
class ContextManager(Protocol[_T_co]):
def __enter__(self) -> _T_co: ...
def __exit__(self, exc_type: Optional[Type[BaseException]],
exc_value: Optional[BaseException],
traceback: Optional[TracebackType]) -> Optional[bool]: ...
def __exit__(self, __exc_type: Optional[Type[BaseException]],
__exc_value: Optional[BaseException],
__traceback: Optional[TracebackType]) -> Optional[bool]: ...
if sys.version_info >= (3, 5):
@runtime