File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 42
42
hooks :
43
43
- id : rst-backticks
44
44
- repo : https://github.com/pre-commit/mirrors-mypy
45
- rev : v0.720
45
+ rev : v0.740
46
46
hooks :
47
47
- id : mypy
48
48
files : ^(src/|testing/)
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ def __exit__(
187
187
exc_type : Optional ["Type[BaseException]" ],
188
188
exc_val : Optional [BaseException ],
189
189
exc_tb : Optional [TracebackType ],
190
- ) -> bool :
190
+ ) -> None :
191
191
if not self ._entered :
192
192
__tracebackhide__ = True
193
193
raise RuntimeError ("Cannot exit %r without entering first" % self )
@@ -198,8 +198,6 @@ def __exit__(
198
198
# manually here for this context manager to become reusable.
199
199
self ._entered = False
200
200
201
- return False
202
-
203
201
204
202
class WarningsChecker (WarningsRecorder ):
205
203
def __init__ (
@@ -232,7 +230,7 @@ def __exit__(
232
230
exc_type : Optional ["Type[BaseException]" ],
233
231
exc_val : Optional [BaseException ],
234
232
exc_tb : Optional [TracebackType ],
235
- ) -> bool :
233
+ ) -> None :
236
234
super ().__exit__ (exc_type , exc_val , exc_tb )
237
235
238
236
__tracebackhide__ = True
@@ -263,4 +261,3 @@ def __exit__(
263
261
[each .message for each in self ],
264
262
)
265
263
)
266
- return False
You can’t perform that action at this time.
0 commit comments