PEP 702: Update number of parameters in specification (#3011)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
parent
b793892420
commit
65a56a2142
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue