mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove unused enumerate
This commit is contained in:
@@ -119,7 +119,7 @@ def update_annotations_using_type_comments(app: Sphinx, obj: Any, bound_method:
|
||||
type_sig = get_type_comment(obj, bound_method)
|
||||
if type_sig:
|
||||
sig = inspect.signature(obj, bound_method)
|
||||
for i, param in enumerate(sig.parameters.values()):
|
||||
for param in sig.parameters.values():
|
||||
if param.name not in obj.__annotations__:
|
||||
annotation = type_sig.parameters[param.name].annotation
|
||||
if annotation is not Parameter.empty:
|
||||
|
||||
Reference in New Issue
Block a user