Skip to content

Commit d39399f

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 d39399f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/spec/special-types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ 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
192-
allowed as an argument to ``type``.
191+
Some other :term:`special forms <special form>` like ``Literal`` or
192+
`TypedDict` are not allowed as an argument to ``type``.
193193

194194
There are some concerns with this feature: for example when
195195
``new_user()`` calls ``user_class()`` this implies that all subclasses

0 commit comments

Comments
 (0)