py2docfx 0.1.17.dev2139528__py3-none-any.whl → 0.1.17.dev2143708__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.
- py2docfx/docfx_yaml/parameter_utils.py +8 -1
- {py2docfx-0.1.17.dev2139528.dist-info → py2docfx-0.1.17.dev2143708.dist-info}/METADATA +1 -1
- {py2docfx-0.1.17.dev2139528.dist-info → py2docfx-0.1.17.dev2143708.dist-info}/RECORD +5 -5
- {py2docfx-0.1.17.dev2139528.dist-info → py2docfx-0.1.17.dev2143708.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.17.dev2139528.dist-info → py2docfx-0.1.17.dev2143708.dist-info}/top_level.txt +0 -0
@@ -164,6 +164,13 @@ def is_typing(node_text: str, node) -> bool:
|
|
164
164
|
def is_system_type(name: str) -> bool:
|
165
165
|
return isclass(getattr(builtins, name, None))
|
166
166
|
|
167
|
+
def is_complex_type(node_text: str) -> bool:
|
168
|
+
complex_type_chars = ['[', ']', '(', ')']
|
169
|
+
for char in complex_type_chars:
|
170
|
+
if char in node_text:
|
171
|
+
return True
|
172
|
+
return False
|
173
|
+
|
167
174
|
def process_complex_type(type_string: str) -> str:
|
168
175
|
# replace "or" with ","
|
169
176
|
type_string = type_string.replace(" or ", ",")
|
@@ -217,7 +224,7 @@ def extract_types(ret_data, skip_index_set = [], description_index = None):
|
|
217
224
|
type_str += f'<xref:typing.{node_text}>'
|
218
225
|
else:
|
219
226
|
type_str += f'<xref:{node_text}>'
|
220
|
-
elif (
|
227
|
+
elif is_complex_type(node_text):
|
221
228
|
type_str += process_complex_type(node_text)
|
222
229
|
else:
|
223
230
|
if 'refid' in node.attributes:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: py2docfx
|
3
|
-
Version: 0.1.17.
|
3
|
+
Version: 0.1.17.dev2143708
|
4
4
|
Summary: A package built based on Sphinx which download source code package and generate yaml files supported by docfx.
|
5
5
|
Author: Microsoft Corporation
|
6
6
|
License: MIT License
|
@@ -68,7 +68,7 @@ py2docfx/docfx_yaml/directives.py,sha256=zVVuNM_6AU9G6sbqL1UAyHHgPe7bkBWbthXI-PO
|
|
68
68
|
py2docfx/docfx_yaml/logger.py,sha256=gz416vqSqmsD91qLOCLAzomczlCfWqGXFJFRzLlVbJE,6503
|
69
69
|
py2docfx/docfx_yaml/miss_reference.py,sha256=NHoQtas0kvFsJXaR4fsk7kHjwV4aJobrr_Q30HaUc_I,2450
|
70
70
|
py2docfx/docfx_yaml/nodes.py,sha256=tBDi35jLJArlobl07DKOkmH2qz7dudXLp_kTUfR_r2w,412
|
71
|
-
py2docfx/docfx_yaml/parameter_utils.py,sha256=
|
71
|
+
py2docfx/docfx_yaml/parameter_utils.py,sha256=04wQCtbS-G2hWM5UGkL22s10LZLUbqbh3RM9rWGOToI,10897
|
72
72
|
py2docfx/docfx_yaml/process_doctree.py,sha256=RUbq2DkkKl-KjKiuQrZhuvi8Q_ZjUdW4oi6CTWpMkxc,17229
|
73
73
|
py2docfx/docfx_yaml/return_type_utils.py,sha256=nmdCUOvwdYk2jF6RqmOvU6gjXmXUTPUeCqyHPdKZNUQ,7483
|
74
74
|
py2docfx/docfx_yaml/settings.py,sha256=JQZNwFebczl-zn8Yk2taAGANRi-Hw8hywtDWxqXXFyQ,373
|
@@ -3913,7 +3913,7 @@ py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/convert.py,sha256=0wSJMU0m
|
|
3913
3913
|
py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/pack.py,sha256=o3iwjfRHl7N9ul-M2kHbewLJZnqBLAWf0tzUCwoiTMw,3078
|
3914
3914
|
py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/tags.py,sha256=Rv2ySVb8-qX3osKp3uJgxcIMXkjt43XUD0-zvC6KvnY,4775
|
3915
3915
|
py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/unpack.py,sha256=Y_J7ynxPSoFFTT7H0fMgbBlVErwyDGcObgme5MBuz58,1021
|
3916
|
-
py2docfx-0.1.17.
|
3917
|
-
py2docfx-0.1.17.
|
3918
|
-
py2docfx-0.1.17.
|
3919
|
-
py2docfx-0.1.17.
|
3916
|
+
py2docfx-0.1.17.dev2143708.dist-info/METADATA,sha256=6DDD-7kgHvlrKcCbfiCWEqp1UnDusRn2MbubW4sdsMI,548
|
3917
|
+
py2docfx-0.1.17.dev2143708.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
3918
|
+
py2docfx-0.1.17.dev2143708.dist-info/top_level.txt,sha256=5dH2uP81dczt_qQJ38wiZ-gzoVWasfiJALWRSjdbnYU,9
|
3919
|
+
py2docfx-0.1.17.dev2143708.dist-info/RECORD,,
|
File without changes
|
File without changes
|