Skip to content

Commit 9edda9a

Browse files
author
Ikko Eltociear Ashimine
authored
Fix typo in dataclasses.py (#16173)
``` heirarchy -> hierarchy ```
1 parent ff81a1c commit 9edda9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/plugins/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ def _freeze(self, attributes: list[DataclassAttribute]) -> None:
730730
for attr in attributes:
731731
# Classes that directly specify a dataclass_transform metaclass must be neither frozen
732732
# non non-frozen per PEP681. Though it is surprising, this means that attributes from
733-
# such a class must be writable even if the rest of the class heirarchy is frozen. This
733+
# such a class must be writable even if the rest of the class hierarchy is frozen. This
734734
# matches the behavior of Pyright (the reference implementation).
735735
if attr.is_neither_frozen_nor_nonfrozen:
736736
continue

0 commit comments

Comments
 (0)