Skip to content

Commit 6f5c210

Browse files
committed
chore: correct comment phrasing
1 parent bae38af commit 6f5c210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/dataclasses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ def _is_type(annotation, cls, a_module, a_type, is_type_predicate):
773773
a_type_module = cls_module.__dict__.get(module_name)
774774
if (
775775
isinstance(a_type_module, types.ModuleType)
776-
# Consider the case when a_type does not belong
777-
# to the namespace, e.g. 'dataclasses.ClassVar[int]'
776+
# Handle cases when a_type is not defined in
777+
# the referenced module, e.g. 'dataclasses.ClassVar[int]'
778778
and a_type_module.__dict__.get(type_name) is a_type
779779
):
780780
ns = sys.modules.get(a_type.__module__).__dict__

0 commit comments

Comments
 (0)