Skip to content

Commit 8eb487e

Browse files
committed
don't state that type[Callable] is invalid and don't refer to it as a special form
1 parent 7f8f6bb commit 8eb487e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/special-types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ concrete class object, e.g. in the above example::
188188
``type[T]`` where ``T`` is a type variable is allowed when annotating the
189189
first argument of a class method (see the relevant section).
190190

191-
Any other :term:`special forms <special form>` like ``Callable`` are not
191+
Any other :term:`special forms <special form>` like ``Literal`` are not
192192
allowed as an argument to ``type``.
193193

194194
There are some concerns with this feature: for example when

0 commit comments

Comments
 (0)