Fix markup in PEP 557. (GH-487)
This commit is contained in:
parent
20b7e48120
commit
70ed6ad17e
|
@ -745,7 +745,7 @@ to ``__post_init__`` where user code can use them as needed.
|
|||
|
||||
The only real difference between alternate classmethod constructors
|
||||
and ``InitVar`` pseudo-fields is in regards to required non-field
|
||||
parameters during object creation. With ``InitVar``s, using
|
||||
parameters during object creation. With ``InitVar``\s, using
|
||||
``__init__`` and the module-level ``replace()`` function ``InitVar``'s
|
||||
must always be specified. Consider the case where a ``context``
|
||||
object is needed to create an instance, but isn't stored as a field.
|
||||
|
|
Loading…
Reference in New Issue