updated contents from Atlas repo
This commit is contained in:
12
functions/clip_signature.rst
Normal file
12
functions/clip_signature.rst
Normal file
@@ -0,0 +1,12 @@
|
||||
>>> from clip import clip
|
||||
>>> from inspect import signature
|
||||
>>> sig = signature(clip)
|
||||
>>> sig # doctest: +ELLIPSIS
|
||||
<inspect.Signature object at 0x...>
|
||||
>>> str(sig)
|
||||
'(text, max_len=80)'
|
||||
>>> for name, param in sig.parameters.items():
|
||||
... print(param.kind, ':', name, '=', param.default)
|
||||
...
|
||||
POSITIONAL_OR_KEYWORD : text = <class 'inspect._empty'>
|
||||
POSITIONAL_OR_KEYWORD : max_len = 80
|
||||
Reference in New Issue
Block a user