mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-25 14:28:59 +08:00
13 lines
318 B
Python
13 lines
318 B
Python
from inspect import getfullargspec as _getfullargspec
|
|
|
|
def getargspec(method):
|
|
args, varargs, keywords, defaults, _, _, _ = _getfullargspec(method)
|
|
return args, varargs, keywords, defaults
|
|
|
|
def raise_with_traceback(exc, tb):
|
|
raise exc.with_traceback(tb)
|
|
|
|
def raise_from_none(exc):
|
|
raise exc from None
|
|
|