Browse Source

🎨 Auto format

pull/15327/head
pre-commit-ci-lite[bot] 3 months ago
committed by GitHub
parent
commit
f07af90f37
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/utils.py

2
fastapi/utils.py

@ -94,7 +94,7 @@ def generate_operation_id_for_path(
return operation_id
def generate_unique_id(route: "APIRoute", method: str | None = None) -> str:
def generate_unique_id(route: APIRoute, method: str | None = None) -> str:
operation_id = f"{route.name}{route.path_format}"
operation_id = re.sub(r"\W", "_", operation_id)
assert route.methods

Loading…
Cancel
Save