forked from orbit-oss/flask
accurate type for __exit__
This commit is contained in:
parent
cb7cd1e79b
commit
faaa5594b2
3 changed files with 14 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue