From cd56353043f3f362cf6abee44a54330b66096794 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:16:50 +0100 Subject: [PATCH] test: fix `PT018` violation https://docs.astral.sh/ruff/rules/pytest-composite-assertion/ --- tools/update_init_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/update_init_file.py b/tools/update_init_file.py index 6db1e8e70..3f177fe2e 100644 --- a/tools/update_init_file.py +++ b/tools/update_init_file.py @@ -56,7 +56,8 @@ def update__all__variable() -> None: elif first_definition_line is not None and line.startswith("]"): last_definition_line = idx break - assert first_definition_line is not None and last_definition_line is not None + assert first_definition_line is not None + assert last_definition_line is not None # Figure out which attributes are relevant relevant_attributes = sorted(x for x in alt.__dict__ if _is_relevant_attribute(x))