Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c62162d

Browse files
committed
docs/inspect: Document __annotations__
1 parent 0e5eba2 commit c62162d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/library/inspect.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ attributes:
8888
| | __globals__ | global namespace in which |
8989
| | | this function was defined |
9090
+-----------+-----------------+---------------------------+
91+
| | __annotations__ | mapping of parameters |
92+
| | | names to annotations; |
93+
| | | ``"return"`` key is |
94+
| | | reserved for return |
95+
| | | annotations. |
96+
+-----------+-----------------+---------------------------+
9197
| traceback | tb_frame | frame object at this |
9298
| | | level |
9399
+-----------+-----------------+---------------------------+

0 commit comments

Comments
 (0)