PEP 702: Update number of parameters in specification (#3011)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
Jelle Zijlstra 2023-02-09 09:30:20 -08:00 committed by GitHub
parent b793892420
commit 65a56a2142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -107,7 +107,13 @@ indicating that the particular overload is deprecated. The decorator may also be
applied to the overload implementation function, indicating that the entire function
is deprecated.
The decorator takes a single argument of type ``str``, which is a message that should
The decorator takes the following arguments:
* A required positional-only argument representing the deprecation message.
* Two keyword-only arguments, ``category`` and ``stacklevel``, controlling
runtime behavior (see under "Runtime behavior" below).
The positional-only argument is of type ``str`` and contains a message that should
be shown by the type checker when it encounters a usage of the decorated object.
The message must be a string literal.
The content of deprecation messages is up to the user, but it may include the version