Skip to content

Commit 9c854e1

Browse files
committed
Suppress mypy error: Cannot assign to a method
Related to Project-MONAI#494
1 parent 5b7dce4 commit 9c854e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/__init__.py

+2-1
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)