added chapter map to README
This commit is contained in:
10
06-1class-func/clip_annot_signature.rst
Normal file
10
06-1class-func/clip_annot_signature.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
>>> from clip_annot import clip
|
||||
>>> from inspect import signature
|
||||
>>> sig = signature(clip)
|
||||
>>> sig.return_annotation
|
||||
<class 'str'>
|
||||
>>> for param in sig.parameters.values():
|
||||
... note = repr(param.annotation).ljust(13)
|
||||
... print(note, ':', param.name, '=', param.default)
|
||||
<class 'str'> : text = <class 'inspect._empty'>
|
||||
'int > 0' : max_len = 80
|
||||
Reference in New Issue
Block a user