Skip to content

Commit a18ff35

Browse files
dzherbtaminomara
authored andcommitted
chore: correct comment phrasing
1 parent 7122da1 commit a18ff35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/dataclasses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,8 @@ def _is_type(annotation, cls, a_module, a_type, is_type_predicate):
831831
a_type_module = cls_module.__dict__.get(module_name)
832832
if (
833833
isinstance(a_type_module, types.ModuleType)
834-
# Consider the case when a_type does not belong
835-
# to the namespace, e.g. 'dataclasses.ClassVar[int]'
834+
# Handle cases when a_type is not defined in
835+
# the referenced module, e.g. 'dataclasses.ClassVar[int]'
836836
and a_type_module.__dict__.get(type_name) is a_type
837837
):
838838
ns = sys.modules.get(a_type.__module__).__dict__

0 commit comments

Comments
 (0)