diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-05-16 17:06:23 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-05-16 17:06:23 -0300 |
commit | bac5c9495f99c90b05bcc5479ee9682e97f472fd (patch) | |
tree | c487454ec15ee1495ae98df321938b16b7297c18 | |
parent | cd4a8447333310e3fe1e7e5227cf89fecbf3a3da (diff) | |
download | pint-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.rst | 4 |
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 |