Skip to content

Commit

Permalink
Fix typo in dataclasses.py (#16173)
Browse files Browse the repository at this point in the history
```
heirarchy -> hierarchy
```
  • Loading branch information
eltociear authored Sep 24, 2023
1 parent ff81a1c commit 9edda9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/plugins/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def _freeze(self, attributes: list[DataclassAttribute]) -> None:
for attr in attributes:
# Classes that directly specify a dataclass_transform metaclass must be neither frozen
# non non-frozen per PEP681. Though it is surprising, this means that attributes from
# such a class must be writable even if the rest of the class heirarchy is frozen. This
# such a class must be writable even if the rest of the class hierarchy is frozen. This
# matches the behavior of Pyright (the reference implementation).
if attr.is_neither_frozen_nor_nonfrozen:
continue
Expand Down

0 comments on commit 9edda9a

Please sign in to comment.