From 0ecf1cabde3ee0cf99889249c5261b00dec68cb4 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Mon, 28 Nov 2022 15:27:47 +0100 Subject: [PATCH] ubuiltins: Document globals. --- src/ubuiltins/__init__.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/ubuiltins/__init__.py b/src/ubuiltins/__init__.py index a5578cf..e2f0487 100644 --- a/src/ubuiltins/__init__.py +++ b/src/ubuiltins/__init__.py @@ -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. """