mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
docs/inspect: Document __annotations__
This commit is contained in:
parent
0e5eba25c7
commit
c62162d5fd
1 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,12 @@ attributes:
|
|||
| | __globals__ | global namespace in which |
|
||||
| | | this function was defined |
|
||||
+-----------+-----------------+---------------------------+
|
||||
| | __annotations__ | mapping of parameters |
|
||||
| | | names to annotations; |
|
||||
| | | ``"return"`` key is |
|
||||
| | | reserved for return |
|
||||
| | | annotations. |
|
||||
+-----------+-----------------+---------------------------+
|
||||
| traceback | tb_frame | frame object at this |
|
||||
| | | level |
|
||||
+-----------+-----------------+---------------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue