Skip to content

Commit 550e385

Browse files
committed
Suppress mypy error: Cannot assign to a method
Related to Project-MONAI#494
1 parent dc29088 commit 550e385

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def _enter_pr_4800(self):
3131

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

0 commit comments

Comments
 (0)