You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below code with Python 3.12 and python-cdd==0.0.99rc47:
importcdd.docstring.parsedefmy_function(arg: str) ->None:
"""Summary. Args: arg: A 'quoted' word. """cdd.docstring.parse.docstring(my_function.__doc__)
Will crash _parse_adhoc_doc_for_typ_phase0 with TypeError: unhashable type: 'list'
Traceback (most recent call last):
...
File "/path/to/venv/lib/python3.12/site-packages/cdd/docstring/utils/parse_utils.py", line 263, in parse_adhoc_doc_for_typ
candidate_type, fst_sentence, sentence = _parse_adhoc_doc_for_typ_phase0(doc, words)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/venv/lib/python3.12/site-packages/cdd/docstring/utils/parse_utils.py", line 410, in _parse_adhoc_doc_for_typ_phase0
candidate_type: Optional[str] = next(
^^^^^
TypeError: unhashable type: 'list'
The text was updated successfully, but these errors were encountered:
jamesbraza
changed the title
Single quotes in argument breaks parsing
Single quoted word in argument breaks docstring parsing
Jun 23, 2024
The below code with Python 3.12 and
python-cdd==0.0.99rc47
:Will crash
_parse_adhoc_doc_for_typ_phase0
withTypeError: unhashable type: 'list'
The text was updated successfully, but these errors were encountered: