Skip to content

Commit

Permalink
fixing flake8 warning about overshadowed loop variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Dec 7, 2020
1 parent 8e7afbc commit 9ea5156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piccolo_api/fastapi/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ def modify_signature(
annotation=Request,
),
]
for field_name, field in model.__fields__.items():
type_ = field.type_
for field_name, _field in model.__fields__.items():
type_ = _field.type_
parameters.append(
Parameter(
name=field_name,
Expand Down

0 comments on commit 9ea5156

Please sign in to comment.