Skip to content

Commit 17ee994

Browse files
committed
Fix type syntax
1 parent 3458de2 commit 17ee994

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/hyperlink/test/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class HyperlinkTestCase(TestCase):
66
"""This type mostly exists to provide a backwards-compatible
77
assertRaises method for Python 2.6 testing.
88
"""
9-
def assertRaises( # type: ignore[override] Doesn't match superclass, meh
9+
def assertRaises( # type: ignore[override]
1010
self, expected_exception, callableObj=None, *args, **kwargs
1111
):
1212
# type: (Type[BaseException], Optional[Callable], Any, Any) -> Any

src/hyperlink/test/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_assertRaisesContextManager(self):
8888
with self.hyperlink_test.assertRaises(_ExpectedException) as cm:
8989
raise _ExpectedException
9090

91-
self.assertTrue( # type: ignore[misc] unreachable
91+
self.assertTrue( # type: ignore[misc] # unreachable
9292
isinstance(cm.exception, _ExpectedException)
9393
)
9494

src/hyperlink/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
try:
44
from socket import inet_pton
55
except ImportError:
6-
inet_pton = None # type: ignore[assignment] intentional
6+
inet_pton = None # type: ignore[assignment]
77

88
if not inet_pton:
99
import socket

0 commit comments

Comments
 (0)