summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-05-16 17:06:23 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-05-16 17:06:23 -0300
commitbac5c9495f99c90b05bcc5479ee9682e97f472fd (patch)
treec487454ec15ee1495ae98df321938b16b7297c18
parentcd4a8447333310e3fe1e7e5227cf89fecbf3a3da (diff)
downloadpint-bac5c9495f99c90b05bcc5479ee9682e97f472fd.tar.gz
In docs, import TypeAlias from typing_extensions as docs are always built with the lowest Python version
-rw-r--r--docs/advanced/custom-registry-class.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/advanced/custom-registry-class.rst b/docs/advanced/custom-registry-class.rst
index c80b3c5..395f1b0 100644
--- a/docs/advanced/custom-registry-class.rst
+++ b/docs/advanced/custom-registry-class.rst
@@ -95,8 +95,8 @@ can specify the types of
.. doctest::
- >>> # from typing_extensions import TypeAlias # Python 3.9
- >>> from typing import TypeAlias # Python 3.10+
+ >>> from typing_extensions import TypeAlias # Python 3.9
+ >>> # from typing import TypeAlias # Python 3.10+
>>> class MyRegistry(pint.registry.GenericUnitRegistry[MyQuantity, pint.Unit]):
...
... Quantity: TypeAlias = MyQuantity