update README and History

This commit is contained in:
Koudai Aono
2019-08-02 15:45:25 +09:00
parent a1f4f2ada2
commit 45b4223ddb
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -2,6 +2,9 @@
History
-------
v0.32 (unreleased)
..................
* support ``ForwardRef`` (without self-referencing annotations) in Python3.6, #706 by @koxudaxi
v0.31.1 (2019-07-31)
....................
+2 -2
View File
@@ -277,7 +277,7 @@ The ellipsis ``...`` just means "Required" same as annotation only declarations
Self-referencing Models
~~~~~~~~~~~~~~~~~~~~~~~
Since ``python 3.7``, data structures with self-referencing models are also supported, provided the function
Data structures with self-referencing models are also supported, provided the function
``update_forward_refs()`` is called once the model is created (you will be reminded
with a friendly error message if you don't).
@@ -287,7 +287,7 @@ Within the model, you can refer to the not-yet-constructed model by a string :
(This script is complete, it should run "as is")
You can also refer it by its type, provided you import ``annotations`` (see
Since ``python 3.7``, You can also refer it by its type, provided you import ``annotations`` (see
:ref:`the relevant paragraph <postponed_annotations>` for support depending on Python
and pydantic versions).