Skip to content

Commit 1e9d179

Browse files
committed
CI: Typefixes for mypy 1.16.1
1 parent d7fbd08 commit 1e9d179

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pdoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _pep224_docstrings(doc_obj: Union['Module', 'Class'], *,
291291

292292
# For classes, maybe add instance variables defined in __init__
293293
# Get the *last* __init__ node in case it is preceded by @overloads.
294-
for node in reversed(tree.body):
294+
for node in reversed(tree.body): # type: ignore
295295
if isinstance(node, ast.FunctionDef) and node.name == '__init__':
296296
instance_vars, _ = _pep224_docstrings(doc_obj, _init_tree=node)
297297
break

pdoc/html_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def glimpse(text: str, max_length=153, *, paragraph=True,
7070

7171

7272
_md = markdown.Markdown(
73-
output_format='html5', # type: ignore[arg-type]
73+
output_format='html',
7474
extensions=[
7575
"markdown.extensions.abbr",
7676
"markdown.extensions.admonition",

0 commit comments

Comments
 (0)