Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches

◆ called_as_decorator()

'Union[1, 2, 3, False]' Cope.debugging.called_as_decorator (   funcName,
  metadata = None,
  calls = 1 
)

Return 1 if being used as a function decorator, 2 if as a class decorator, 3 if not sure, and False if neither.

Definition at line 249 of file debugging.py.