accurate type for __exit__

This commit is contained in:
David Lord 2022-03-15 08:44:09 -07:00
parent cb7cd1e79b
commit faaa5594b2
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 14 additions and 3 deletions

View file

@ -227,7 +227,10 @@ class FlaskClient(Client):
return self
def __exit__(
self, exc_type: type, exc_value: BaseException, tb: TracebackType
self,
exc_type: t.Optional[type],
exc_value: t.Optional[BaseException],
tb: t.Optional[TracebackType],
) -> None:
self.preserve_context = False