mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
@@ -19,14 +19,14 @@ class NoWatermark:
|
||||
|
||||
|
||||
def get_signature(cls):
|
||||
signature = inspect.signature(cls.__init__, follow_wrapped=True, eval_str=True)
|
||||
signature = inspect.signature(cls.__init__, follow_wrapped=True)
|
||||
return signature.parameters
|
||||
|
||||
|
||||
def get_call(cls):
|
||||
if cls is None:
|
||||
return []
|
||||
signature = inspect.signature(cls.__call__, follow_wrapped=True, eval_str=True)
|
||||
signature = inspect.signature(cls.__call__, follow_wrapped=True)
|
||||
return signature.parameters
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user