Return the name of the calling function
()
| 357 | |
| 358 | |
| 359 | def calling_function() -> Optional[str]: |
| 360 | """Return the name of the calling function""" |
| 361 | try: |
| 362 | stack_info = traceback.extract_stack()[-3] |
| 363 | return stack_info.name |
| 364 | except: |
| 365 | return None |
| 366 | |
| 367 | |
| 368 | # |
nothing calls this directly
no outgoing calls
no test coverage detected