mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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 |
|
| | __globals__ | global namespace in which |
|
||||||
| | | this function was defined |
|
| | | 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 |
|
| traceback | tb_frame | frame object at this |
|
||||||
| | | level |
|
| | | level |
|
||||||
+-----------+-----------------+---------------------------+
|
+-----------+-----------------+---------------------------+
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue