From 45b4223ddb9ae867fef9ca45b248745980b9cfbf Mon Sep 17 00:00:00 2001 From: Koudai Aono Date: Fri, 2 Aug 2019 15:45:25 +0900 Subject: [PATCH] update README and History --- HISTORY.rst | 3 +++ docs/index.rst | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index a48109c..1a3be61 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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) .................... diff --git a/docs/index.rst b/docs/index.rst index 47389fc..75720f2 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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 ` for support depending on Python and pydantic versions).