Skip to content

Commit

Permalink
Suppress mypy error: Cannot assign to a method
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Jun 5, 2020
1 parent dc29088 commit 550e385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def _enter_pr_4800(self):

# workaround for https://bugs.python.org/issue29620
try:
unittest.case._AssertWarnsContext.__enter__ = _enter_pr_4800
# Suppression for issue #494: tests/__init__.py:34: error: Cannot assign to a method
unittest.case._AssertWarnsContext.__enter__ = _enter_pr_4800 # type: ignore
except AttributeError:
pass

0 comments on commit 550e385

Please sign in to comment.