ubuiltins: Document globals.

This commit is contained in:
Laurens Valk
2022-11-28 15:27:47 +01:00
parent ba8d9806f7
commit 0ecf1cabde
+12 -2
View File
@@ -523,7 +523,12 @@ def getattr(*args):
def globals() -> Dict[_str, Any]:
"""
Return a dictionary representing the current global symbol table.
globals() -> dict
Gets a dictionary representing the current global symbol table.
Returns:
The dictionary of globals.
"""
@@ -732,7 +737,12 @@ class list:
def locals() -> _dict:
"""
Updates and returns a dictionary representing the current local symbol table.
locals() -> dict
Gets a dictionary representing the current local symbol table.
Returns:
The dictionary of locals.
"""