File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ parameters to :meth:`__post_init__`. Also see the warning about how
552
552
Class variables
553
553
---------------
554
554
555
- One of two places where :func: `dataclass ` actually inspects the type
555
+ One of the few places where :func: `dataclass ` actually inspects the type
556
556
of a field is to determine if a field is a class variable as defined
557
557
in :pep: `526 `. It does this by checking if the type of the field is
558
558
``typing.ClassVar ``. If a field is a ``ClassVar ``, it is excluded
@@ -563,7 +563,7 @@ module-level :func:`fields` function.
563
563
Init-only variables
564
564
-------------------
565
565
566
- The other place where :func: `dataclass ` inspects a type annotation is to
566
+ Another place where :func: `dataclass ` inspects a type annotation is to
567
567
determine if a field is an init-only variable. It does this by seeing
568
568
if the type of a field is of type ``dataclasses.InitVar ``. If a field
569
569
is an ``InitVar ``, it is considered a pseudo-field called an init-only
You can’t perform that action at this time.
0 commit comments