Skip to content

Commit b977f17

Browse files
committed
ci: Remove unused type-ignore comments
1 parent 30db8d7 commit b977f17

File tree

1 file changed

+2
-2
lines changed
  • src/griffe/_internal/docstrings

1 file changed

+2
-2
lines changed

src/griffe/_internal/docstrings/auto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def infer_docstring_style(
173173
if method == "max_sections":
174174
style_sections = {}
175175
for style in style_order:
176-
style_sections[style] = parsers[style](docstring, **per_style_options.get(style, {})) # type: ignore[arg-type,union-attr]
176+
style_sections[style] = parsers[style](docstring, **per_style_options.get(style, {})) # type: ignore[arg-type]
177177
style_lengths = {style: len(section) for style, section in style_sections.items()}
178178
max_sections = max(style_lengths.values())
179179
for style in style_order:
@@ -241,5 +241,5 @@ def parse_auto(
241241
per_style_options=per_style_options,
242242
)
243243
if sections is None:
244-
return parse(docstring, style, **per_style_options.get(style, {})) # type: ignore[arg-type,typeddict-item,union-attr]
244+
return parse(docstring, style, **per_style_options.get(style, {})) # type: ignore[arg-type,typeddict-item]
245245
return sections

0 commit comments

Comments
 (0)