Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Escape parentheses in regex pattern to fix test match
  • Loading branch information
donbarbos committed Apr 28, 2025
commit 0ac8a1c132a1d9e822ef1749746b8341f84282ec
2 changes: 1 addition & 1 deletion Lib/test/test_type_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def check_annotations(self, f):
print(f.__annotations__)

f.__annotate__ = lambda x: 42
with self.assertRaisesRegex(TypeError, r"__annotate__() must return type dict of type 'int'"):
with self.assertRaisesRegex(TypeError, r"__annotate__\(\) must return type dict of type 'int'"):
print(f.__annotations__)

f.__annotate__ = lambda x: {"x": x}
Expand Down