Skip to content

Commit b73d5ef

Browse files
authored
Don't require comment for Any in Callable[..., Any] (#2383)
1 parent 4abf23e commit b73d5ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎docs/guides/writing_stubs.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ reasons can include:
805805

806806
* Using :ref:`Any` as a type argument for a generic with invariant type variables
807807
to say "any object of this type is allowed", e.g. ``Future[Any]``.
808+
* Using the expression ``Callable[..., Any]`` to say "any callable".
808809
* Using ``dict[str, Any]`` or ``Mapping[str, Any]`` when the value types
809810
depend on the keys. But consider using :ref:`TypedDict` or
810811
``dict[str, Incomplete]`` (temporarily) when the keys of the dictionary are

0 commit comments

Comments
 (0)