Code cleanup for run_test.py
[python_utils.git] / function_utils.py
index f027f8ce9d07fd22c7d18af2cccc0f92413115d9..a8ab0c74cfc50cb53b1e5b1b3f4dc49a8c9fc51e 100644 (file)
@@ -1,5 +1,9 @@
 #!/usr/bin/env python3
 
+# © Copyright 2021-2022, Scott Gasch
+
+"""Helper methods dealing with functions."""
+
 from typing import Callable
 
 
@@ -14,10 +18,11 @@ def function_identifier(f: Callable) -> str:
 
     >>> function_identifier(function_identifier)
     'function_utils:function_identifier'
-
     """
+
     if f.__module__ == '__main__':
         from pathlib import Path
+
         import __main__
 
         module = __main__.__file__