toolslm 0.3.19__tar.gz → 0.3.20__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {toolslm-0.3.19/toolslm.egg-info → toolslm-0.3.20}/PKG-INFO +1 -1
- {toolslm-0.3.19 → toolslm-0.3.20}/settings.ini +1 -1
- toolslm-0.3.20/toolslm/__init__.py +1 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm/funccall.py +6 -1
- {toolslm-0.3.19 → toolslm-0.3.20/toolslm.egg-info}/PKG-INFO +1 -1
- toolslm-0.3.19/toolslm/__init__.py +0 -1
- {toolslm-0.3.19 → toolslm-0.3.20}/LICENSE +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/MANIFEST.in +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/README.md +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/pyproject.toml +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/setup.cfg +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/setup.py +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm/_modidx.py +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm/download.py +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm/md_hier.py +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm/shell.py +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm/xml.py +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm.egg-info/SOURCES.txt +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm.egg-info/dependency_links.txt +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm.egg-info/entry_points.txt +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm.egg-info/not-zip-safe +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm.egg-info/requires.txt +0 -0
- {toolslm-0.3.19 → toolslm-0.3.20}/toolslm.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.20"
|
|
@@ -141,7 +141,12 @@ def get_schema(
|
|
|
141
141
|
assert desc, "Docstring missing!"
|
|
142
142
|
d = docments(f, full=True)
|
|
143
143
|
ret = d.pop('return')
|
|
144
|
-
|
|
144
|
+
has_type = (ret.anno is not empty) and (ret.anno is not None)
|
|
145
|
+
has_doc = ret.docment
|
|
146
|
+
if has_type or has_doc:
|
|
147
|
+
type_str = f'type: {_types(ret.anno)[0]}'
|
|
148
|
+
ret_str = f'{ret.docment} ({type_str})' if has_type and has_doc else (type_str if has_type else ret.docment)
|
|
149
|
+
desc += f'\n\nReturns:\n- {ret_str}'
|
|
145
150
|
return {"name": f.__name__, "description": desc, pname: schema}
|
|
146
151
|
|
|
147
152
|
# %% ../01_funccall.ipynb
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.19"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|