ref: Apply ruff rule RUF052 (#5089)

Apply ruff rule RUF052
This commit is contained in:
Christophe Bornet 2024-12-08 12:51:02 +01:00 • committed by GitHub
commit 0b39554795
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 351 additions and 359 deletions

View file

@ -222,13 +222,13 @@ def distributed_client_fixture(
monkeypatch.undo()
def get_graph(_type="basic"):
def get_graph(type_="basic"):
"""Get a graph from a json file."""
if _type == "basic":
if type_ == "basic":
path = pytest.BASIC_EXAMPLE_PATH
elif _type == "complex":
elif type_ == "complex":
path = pytest.COMPLEX_EXAMPLE_PATH
elif _type == "openapi":
elif type_ == "openapi":
path = pytest.OPENAPI_EXAMPLE_PATH
with path.open(encoding="utf-8") as f: