mkapi-fix 0.1.0__tar.gz → 0.1.2__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.
- {mkapi-fix-0.1.0/mkapi_fix.egg-info → mkapi_fix-0.1.2}/PKG-INFO +13 -2
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/__init__.py +1 -1
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/object.py +11 -11
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2/mkapi_fix.egg-info}/PKG-INFO +13 -2
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/LICENSE +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/MANIFEST.in +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/README.md +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/__init__.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/attribute.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/base.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/code.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/docstring.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/inherit.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/linker.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/module.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/node.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/page.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/postprocess.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/preprocess.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/regex.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/renderer.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/signature.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/core/structure.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/main.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/plugins/__init__.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/plugins/api.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/plugins/mkdocs.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/bases.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/code.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/docstring.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/items.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/macros.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/member.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/module.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/node.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/templates/object.jinja2 +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/theme/css/mkapi-common.css +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/theme/css/mkapi-ivory.css +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/theme/css/mkapi-mkdocs.css +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/theme/css/mkapi-readthedocs.css +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/theme/js/mkapi.js +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/theme/mkapi.yml +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi/utils.py +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi_fix.egg-info/SOURCES.txt +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi_fix.egg-info/dependency_links.txt +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi_fix.egg-info/entry_points.txt +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi_fix.egg-info/requires.txt +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/mkapi_fix.egg-info/top_level.txt +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/setup.cfg +0 -0
- {mkapi-fix-0.1.0 → mkapi_fix-0.1.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mkapi-fix
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: An Auto API Documentation tool.
|
|
5
5
|
Home-page: https://github.com/pwwang/mkapi
|
|
6
6
|
Author: pwwang
|
|
@@ -16,3 +16,14 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
16
16
|
Classifier: Topic :: Documentation
|
|
17
17
|
Requires-Python: >=3.7
|
|
18
18
|
License-File: LICENSE
|
|
19
|
+
Requires-Dist: markdown
|
|
20
|
+
Requires-Dist: jinja2
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: license
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
Dynamic: requires-dist
|
|
28
|
+
Dynamic: requires-python
|
|
29
|
+
Dynamic: summary
|
|
@@ -106,7 +106,12 @@ def split_prefix_and_name(obj: Any) -> Tuple[str, str]:
|
|
|
106
106
|
else:
|
|
107
107
|
module = obj.__module__
|
|
108
108
|
qualname = obj.__qualname__
|
|
109
|
-
if
|
|
109
|
+
if not isinstance(qualname, str):
|
|
110
|
+
name = getattr(obj, '__name__', '')
|
|
111
|
+
if not isinstance(name, str):
|
|
112
|
+
return module or '', repr(obj)
|
|
113
|
+
prefix = module or ''
|
|
114
|
+
elif "." not in qualname: # TypeError: pl.Expr is not iterable
|
|
110
115
|
prefix, name = module, qualname
|
|
111
116
|
else:
|
|
112
117
|
prefix, _, name = qualname.rpartition(".")
|
|
@@ -215,16 +220,11 @@ def get_origin(obj: Any) -> Any:
|
|
|
215
220
|
# if hasattr(obj, "__pytest_wrapped__"):
|
|
216
221
|
# return get_origin(obj.__pytest_wrapped__.obj)
|
|
217
222
|
try:
|
|
218
|
-
|
|
219
|
-
|
|
223
|
+
if hasattr(obj, "__wrapped__"):
|
|
224
|
+
return get_origin(obj.__wrapped__)
|
|
225
|
+
if hasattr(obj, "__pytest_wrapped__"):
|
|
226
|
+
return get_origin(obj.__pytest_wrapped__.obj)
|
|
227
|
+
except Exception:
|
|
220
228
|
pass
|
|
221
|
-
else:
|
|
222
|
-
return get_origin(wrapped)
|
|
223
|
-
try:
|
|
224
|
-
wrapped = obj.__pytest_wrapped__
|
|
225
|
-
except AttributeError:
|
|
226
|
-
pass
|
|
227
|
-
else:
|
|
228
|
-
return get_origin(wrapped.obj)
|
|
229
229
|
|
|
230
230
|
return obj
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mkapi-fix
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: An Auto API Documentation tool.
|
|
5
5
|
Home-page: https://github.com/pwwang/mkapi
|
|
6
6
|
Author: pwwang
|
|
@@ -16,3 +16,14 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
16
16
|
Classifier: Topic :: Documentation
|
|
17
17
|
Requires-Python: >=3.7
|
|
18
18
|
License-File: LICENSE
|
|
19
|
+
Requires-Dist: markdown
|
|
20
|
+
Requires-Dist: jinja2
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: license
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
Dynamic: requires-dist
|
|
28
|
+
Dynamic: requires-python
|
|
29
|
+
Dynamic: summary
|
|
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
|
|
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
|
|
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
|