@@ -154,7 +154,7 @@ def infer_docstring_style(
154154 if per_style_options :
155155 raise ValueError ("Cannot use both `options` and `per_style_options`." )
156156 warn ("`**options` is deprecated. Use `per_style_options` instead." , DeprecationWarning , stacklevel = 2 )
157- per_style_options = {"google" : options , "numpy" : options , "sphinx" : options } # type: ignore[typeddict-item ]
157+ per_style_options = {"google" : options , "numpy" : options , "sphinx" : options } # type: ignore[assignment ]
158158 elif not per_style_options :
159159 per_style_options = {}
160160
@@ -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]
176+ style_sections [style ] = parsers [style ](docstring , ** per_style_options .get (style , {})) # type: ignore[arg-type,union-attr ]
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 :
@@ -229,7 +229,7 @@ def parse_auto(
229229 if per_style_options :
230230 raise ValueError ("Cannot use both `options` and `per_style_options`." )
231231 warn ("`**options` are deprecated. Use `per_style_options` instead." , DeprecationWarning , stacklevel = 2 )
232- per_style_options = {"google" : options , "numpy" : options , "sphinx" : options } # type: ignore[typeddict-item ]
232+ per_style_options = {"google" : options , "numpy" : options , "sphinx" : options } # type: ignore[assignment ]
233233 elif not per_style_options :
234234 per_style_options = {}
235235
@@ -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]
244+ return parse (docstring , style , ** per_style_options .get (style , {})) # type: ignore[arg-type,typeddict-item,union-attr ]
245245 return sections
0 commit comments