Clarify backward-compatible type annotations
Previous wording used the term "function annotations" which is overly generic. This commit modifies the wording to make it clear we don't mean arbitrary function annotations.
This commit is contained in:
parent
97f08774d5
commit
b8a510bf29
|
@ -1325,7 +1325,7 @@ annotations are changing.
|
|||
Stub files can be distributed with a library, or separately (with
|
||||
the library author's permission) through the typeshed repo [5]_.
|
||||
|
||||
- For code that needs to be backwards compatible, function annotations
|
||||
- For code that needs to be backwards compatible, type annotations
|
||||
can be added in the form of comments. See the relevant section of
|
||||
PEP 484 [6]_.
|
||||
|
||||
|
|
Loading…
Reference in New Issue