Skip to content

Commit

Permalink
Merge branch 'drop_support_for_older_pyhton' of github.com:grayson-he…
Browse files Browse the repository at this point in the history
…lmholz/qrules into drop_support_for_older_pyhton
  • Loading branch information
grayson-helmholz committed Oct 10, 2024
2 parents 3d605f3 + cd4c16b commit 70aa1f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/qrules/conservation_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: ...


Expand All @@ -84,7 +84,8 @@ def __call__(
self,
ingoing_edge_qns: list[Any],
outgoing_edge_qns: list[Any],
node_qns: Any, /
node_qns: Any,
/,
) -> bool: ...


Expand Down

0 comments on commit 70aa1f4

Please sign in to comment.