From 02302bbd9363facb59c4df2c1f4013087702cfa6 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Tue, 31 May 2022 15:36:40 -0700 Subject: Improve docstrings for sphinx. --- function_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'function_utils.py') diff --git a/function_utils.py b/function_utils.py index f74a852..a8ab0c7 100644 --- a/function_utils.py +++ b/function_utils.py @@ -18,8 +18,8 @@ def function_identifier(f: Callable) -> str: >>> function_identifier(function_identifier) 'function_utils:function_identifier' - """ + if f.__module__ == '__main__': from pathlib import Path -- cgit v1.3