Skip to content

Commit 51fecc5

Browse files
committed
One more match
1 parent 933a9c5 commit 51fecc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def _is_type(annotation, cls, a_module, a_type, is_type_predicate):
823823
module = sys.modules.get(cls.__module__)
824824
if module and module.__dict__.get(module_name) is a_module:
825825
ns = sys.modules.get(a_type.__module__).__dict__
826-
if ns and is_type_predicate(ns.get(match.group(2)), a_module):
826+
if ns and is_type_predicate(ns.get(match[2]), a_module):
827827
return True
828828
return False
829829

0 commit comments

Comments
 (0)