mkdocstrings-matlab 0.2.0__py2.py3-none-any.whl → 0.2.1__py2.py3-none-any.whl
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.
- mkdocstrings_handlers/matlab/handler.py +7 -2
- mkdocstrings_handlers/matlab/models.py +1 -1
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.1.dist-info}/METADATA +1 -1
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.1.dist-info}/RECORD +6 -6
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.1.dist-info}/WHEEL +0 -0
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.1.dist-info}/licenses/LICENSE +0 -0
@@ -167,6 +167,10 @@ class MatlabHandler(BaseHandler):
|
|
167
167
|
|
168
168
|
if isinstance(ast["superclasses"], str):
|
169
169
|
ast["superclasses"] = [ast["superclasses"]]
|
170
|
+
if isinstance(ast["properties"], dict):
|
171
|
+
ast["properties"] = [ast["properties"]]
|
172
|
+
if isinstance(ast["methods"], dict):
|
173
|
+
ast["methods"] = [ast["methods"]]
|
170
174
|
|
171
175
|
if config["show_inheritance_diagram"]:
|
172
176
|
# Check if class is builtin and skip superclasses if option is not set
|
@@ -341,7 +345,7 @@ class MatlabHandler(BaseHandler):
|
|
341
345
|
elif ast["docstring"]:
|
342
346
|
docstring = Docstring(ast["docstring"], parser=config["docstring_style"])
|
343
347
|
else:
|
344
|
-
docstring
|
348
|
+
docstring = None
|
345
349
|
|
346
350
|
model.docstring = docstring
|
347
351
|
|
@@ -390,7 +394,8 @@ class MatlabHandler(BaseHandler):
|
|
390
394
|
if config["merge_init_into_class"] and model.name in model.members:
|
391
395
|
constructor = model.members.pop(model.name)
|
392
396
|
model.members["__init__"] = constructor
|
393
|
-
|
397
|
+
|
398
|
+
if getattr(constructor.docstring, 'value', '') == getattr(model.docstring, 'value', ''):
|
394
399
|
model.docstring = None
|
395
400
|
|
396
401
|
self.models[model.canonical_path] = model
|
@@ -62,7 +62,7 @@ class Class(CanonicalPathMixin, PathMixin, GriffeClass):
|
|
62
62
|
for block in self._textmate.children
|
63
63
|
if block.token == "meta.methods.matlab"
|
64
64
|
]:
|
65
|
-
for method in block.children:
|
65
|
+
for method in [c for c in block.children if c.token == "meta.function.matlab"]:
|
66
66
|
declaration = next(
|
67
67
|
item
|
68
68
|
for item in method.children
|
@@ -1,7 +1,7 @@
|
|
1
1
|
mkdocstrings_handlers/matlab/__init__.py,sha256=laA2bEP5rxdIWBLmfLiKKu7ChZ_HzCe-VeRvxmUTqww,128
|
2
2
|
mkdocstrings_handlers/matlab/collections.py,sha256=oiDK4nwIUXroIPxw6Cu13WcBxmCyAHjPn7naaW_Yhjs,445
|
3
|
-
mkdocstrings_handlers/matlab/handler.py,sha256=
|
4
|
-
mkdocstrings_handlers/matlab/models.py,sha256=
|
3
|
+
mkdocstrings_handlers/matlab/handler.py,sha256=k0tfPCQlAdK2Km48dOJWM8h857Ys5nQivJ28en994nw,20757
|
4
|
+
mkdocstrings_handlers/matlab/models.py,sha256=F8_kvZxEQbD0jwF-_6bO_ICK8T_DHsQv5e2LXY1rGOw,5694
|
5
5
|
mkdocstrings_handlers/matlab/parser.py,sha256=bA3KRNnYjSewqyJI8OmLKATk3AZOq9-28UQg0L6f9os,843
|
6
6
|
mkdocstrings_handlers/matlab/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
mkdocstrings_handlers/matlab/matlab/matlab_startup.m,sha256=rGXiR8fI2GW7yWmHxgzE5Un66n5ws3ogYnMvS2oWO8U,464
|
@@ -22,7 +22,7 @@ mkdocstrings_handlers/matlab/matlab/+docstring/+utils/dedent.m,sha256=IsqIZKyaBU
|
|
22
22
|
mkdocstrings_handlers/matlab/matlab/+docstring/+utils/get_namespace_path.m,sha256=4NlQ7-RjqIFZAn6P-9JzCrm2FvfGRKiM2M_leINj9i4,835
|
23
23
|
mkdocstrings_handlers/matlab/matlab/+docstring/+utils/parse_doc.m,sha256=iFNpbnOr9FAv-3Zn8ksJHIthXAB7XKYVfH2NGFinzHs,499
|
24
24
|
mkdocstrings_handlers/matlab/resources/grammar.yml,sha256=GLI4xdATiB70bzRscXOVwMlw0YFlA-3GJzuzqWeBKJU,19511
|
25
|
-
mkdocstrings_matlab-0.2.
|
26
|
-
mkdocstrings_matlab-0.2.
|
27
|
-
mkdocstrings_matlab-0.2.
|
28
|
-
mkdocstrings_matlab-0.2.
|
25
|
+
mkdocstrings_matlab-0.2.1.dist-info/METADATA,sha256=hQxu7qSPf15QcDG7yMsjZdht6QWSjfpT7FmBZ-O23Hk,549
|
26
|
+
mkdocstrings_matlab-0.2.1.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
|
27
|
+
mkdocstrings_matlab-0.2.1.dist-info/licenses/LICENSE,sha256=14xA0OIYNpfmdeuq8-Yyqg7-3IJ4qhu3BJhknent-cY,1069
|
28
|
+
mkdocstrings_matlab-0.2.1.dist-info/RECORD,,
|
File without changes
|
{mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.1.dist-info}/licenses/LICENSE
RENAMED
File without changes
|