Skip to content

Commit 9f2d530

Browse files
committed
MNT: Fix issue with mypy 1.18.2
1 parent 8397c60 commit 9f2d530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def get_name(assign_node):
333333
if not name:
334334
continue
335335

336-
docstring = inspect.cleandoc(str_node.value.value).strip()
336+
docstring = inspect.cleandoc(cast(str, str_node.value.value)).strip()
337337
if not docstring:
338338
continue
339339

0 commit comments

Comments
 (0)