From cd4c16b47e4a030eb5eb306e2468bf7e98780d4e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:53:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/qrules/conservation_rules.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/qrules/conservation_rules.py b/src/qrules/conservation_rules.py index bd778b24..f326cc5f 100644 --- a/src/qrules/conservation_rules.py +++ b/src/qrules/conservation_rules.py @@ -49,7 +49,7 @@ from copy import deepcopy from functools import reduce from textwrap import dedent -from typing import Any, Callable, List, Optional, Protocol, Union +from typing import Any, Callable, Optional, Protocol, Union from attrs import define, field, frozen from attrs.converters import optional @@ -70,12 +70,12 @@ def _is_particle_antiparticle_pair(pid1: int, pid2: int) -> bool: class GraphElementRule(Protocol): - def __call__(self, qns: Any ,/) -> bool: ... + def __call__(self, qns: Any, /) -> bool: ... class EdgeQNConservationRule(Protocol): def __call__( - self, ingoing_edge_qns: list[Any], outgoing_edge_qns: list[Any] ,/ + self, ingoing_edge_qns: list[Any], outgoing_edge_qns: list[Any], / ) -> bool: ... @@ -84,7 +84,8 @@ def __call__( self, ingoing_edge_qns: list[Any], outgoing_edge_qns: list[Any], - node_qns: Any, / + node_qns: Any, + /, ) -> bool: ...