Skip to content

Commit 16e7648

Browse files
committed
Add infobox re: ParamSpec prior to Python 3.10
1 parent d14195d commit 16e7648

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/reference/generics.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,11 @@ for a more faithful type annotation:
662662
return func(*args, **kwds)
663663
return wrapper
664664
665+
.. note::
666+
667+
To use this feature on Python versions earlier than 3.10, you will need to
668+
import ``ParamSpec`` from ``typing_extensions``.
669+
665670
Parameter specifications also allow you to describe decorators that
666671
alter the signature of the input function:
667672

0 commit comments

Comments
 (0)