Since this thing is on the innerwebs I suppose it should have a
[python_utils.git] / function_utils.py
index 5b709819026659ec024f889eb3ea107c249c6543..f74a852d7d8834ccc38bda39f21c6d381339a7f1 100644 (file)
@@ -1,5 +1,9 @@
 #!/usr/bin/env python3
 
+# © Copyright 2021-2022, Scott Gasch
+
+"""Helper methods dealing with functions."""
+
 from typing import Callable
 
 
@@ -18,7 +22,9 @@ def function_identifier(f: Callable) -> str:
     """
     if f.__module__ == '__main__':
         from pathlib import Path
+
         import __main__
+
         module = __main__.__file__
         module = Path(module).stem
         return f'{module}:{f.__name__}'