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 4242 hooks :
4343 - id : rst-backticks
4444- repo : https://github.com/pre-commit/mirrors-mypy
45- rev : v0.720
45+ rev : v0.740
4646 hooks :
4747 - id : mypy
4848 files : ^(src/|testing/)
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ def __exit__(
187187 exc_type : Optional ["Type[BaseException]" ],
188188 exc_val : Optional [BaseException ],
189189 exc_tb : Optional [TracebackType ],
190- ) -> bool :
190+ ) -> None :
191191 if not self ._entered :
192192 __tracebackhide__ = True
193193 raise RuntimeError ("Cannot exit %r without entering first" % self )
@@ -198,8 +198,6 @@ def __exit__(
198198 # manually here for this context manager to become reusable.
199199 self ._entered = False
200200
201- return False
202-
203201
204202class WarningsChecker (WarningsRecorder ):
205203 def __init__ (
@@ -232,7 +230,7 @@ def __exit__(
232230 exc_type : Optional ["Type[BaseException]" ],
233231 exc_val : Optional [BaseException ],
234232 exc_tb : Optional [TracebackType ],
235- ) -> bool :
233+ ) -> None :
236234 super ().__exit__ (exc_type , exc_val , exc_tb )
237235
238236 __tracebackhide__ = True
@@ -263,4 +261,3 @@ def __exit__(
263261 [each .message for each in self ],
264262 )
265263 )
266- return False
You can’t perform that action at this time.
0 commit comments