Closed JelleZijlstra closed 3 years ago
From #1: If a function is named __exit__ and has exactly four parameters, the last three should be annotated as Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]. The first is self. We should do the same with __aexit__.
__exit__
Optional[Type[BaseException]]
Optional[BaseException]
Optional[TracebackType]
__aexit__
From #1: If a function is named
__exit__
and has exactly four parameters, the last three should be annotated asOptional[Type[BaseException]]
,Optional[BaseException]
,Optional[TracebackType]
. The first is self. We should do the same with__aexit__
.