mkdocstrings-matlab 0.2.0__py2.py3-none-any.whl → 0.2.2__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- mkdocstrings_handlers/matlab/handler.py +7 -2
- mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/class.m +1 -3
- mkdocstrings_handlers/matlab/models.py +1 -1
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.2.dist-info}/METADATA +1 -1
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.2.dist-info}/RECORD +7 -7
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.2.dist-info}/WHEEL +0 -0
- {mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.2.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
|
@@ -13,6 +13,7 @@ function data = class(object, opts)
|
|
13
13
|
data.sealed = object.Sealed;
|
14
14
|
data.abstract = object.Abstract;
|
15
15
|
data.enumeration = object.Enumeration;
|
16
|
+
data.properties = arrayfun(@(prop) docstring.metadata.property(prop), object.PropertyList);
|
16
17
|
data.superclasses = arrayfun(@(o) string(o.Name), object.SuperclassList);
|
17
18
|
data.handle = object.HandleCompatible;
|
18
19
|
data.aliases = object.Aliases;
|
@@ -43,9 +44,6 @@ function data = class(object, opts)
|
|
43
44
|
end
|
44
45
|
|
45
46
|
numProp = numel(object.PropertyList);
|
46
|
-
for iProp = numProp:-1:1
|
47
|
-
data.properties(iProp) = docstring.metadata.property(object.PropertyList(iProp));
|
48
|
-
end
|
49
47
|
|
50
48
|
nameparts = split(object.Name, '.');
|
51
49
|
data.constructor = any(strcmp(nameparts(end), [data.methods.name]));
|
@@ -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
|
@@ -13,7 +13,7 @@ mkdocstrings_handlers/matlab/matlab/+docstring/+case/func.m,sha256=QneDYSICtXqdP
|
|
13
13
|
mkdocstrings_handlers/matlab/matlab/+docstring/+case/method.m,sha256=Bw8Mb96OP7-AnbGnvRMySOIbYSTtEC1BGBnqHMEIhsM,165
|
14
14
|
mkdocstrings_handlers/matlab/matlab/+docstring/+case/namespace.m,sha256=ZpYrgZHLIdGvgg3F6210gDTska9YyASn63ZVYkBq41A,667
|
15
15
|
mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/argument.m,sha256=yE1sywrr6Q0YjEkPkdBTjjkLeUrPv0jV-degM_EE_iE,1905
|
16
|
-
mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/class.m,sha256=
|
16
|
+
mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/class.m,sha256=C9BjYu8LgUsWc5CPJFlFr2LT7OFrVXbUz2oh7drkKtg,1756
|
17
17
|
mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/func.m,sha256=k1gz4kjEQX5DCIfzCs1lee5jjAL4fg6A7LnwcUF8kRE,424
|
18
18
|
mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/namespace.m,sha256=kMzfAoWIpMXH76rrkyUqauJSRIaylsfnu0Cds4pYnJc,481
|
19
19
|
mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/property.m,sha256=rH3cHz66ZG9sUvDU2fhlyASSB_yp0SiHlbpB44fcFiY,1560
|
@@ -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.2.dist-info/METADATA,sha256=JKSs5H5ohMFlDPGsrfsCjSrRJdi8ZBcDsSVj5wlAsCU,549
|
26
|
+
mkdocstrings_matlab-0.2.2.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
|
27
|
+
mkdocstrings_matlab-0.2.2.dist-info/licenses/LICENSE,sha256=14xA0OIYNpfmdeuq8-Yyqg7-3IJ4qhu3BJhknent-cY,1069
|
28
|
+
mkdocstrings_matlab-0.2.2.dist-info/RECORD,,
|
File without changes
|
{mkdocstrings_matlab-0.2.0.dist-info → mkdocstrings_matlab-0.2.2.dist-info}/licenses/LICENSE
RENAMED
File without changes
|