summaryrefslogtreecommitdiff
path: root/docs/advanced/custom-registry-class.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/advanced/custom-registry-class.rst')
-rw-r--r--docs/advanced/custom-registry-class.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/advanced/custom-registry-class.rst b/docs/advanced/custom-registry-class.rst
index 856349c..75e1a99 100644
--- a/docs/advanced/custom-registry-class.rst
+++ b/docs/advanced/custom-registry-class.rst
@@ -94,6 +94,7 @@ Then, you need to create a custom registry but deriving from `GenericUnitRegistr
can specify the types of
.. doctest::
+
>>> # from typing_extensions import TypeAlias # Python 3.9
>>> from typing import TypeAlias # Python 3.10+
>>> class MyRegistry(pint.GenericUnitRegistry[MyQuantity, pint.Unit]):