Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent 57309d0 commit 1147559
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/decaylanguage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
from .decay import DaughtersDict, DecayChain, DecayChainViewer, DecayMode

__all__ = (
"__version__",
"DaughtersDict",
"DecFileParser",
"DecayChain",
"DecayChainViewer",
"DaughtersDict",
"DecayMode",
"DecayChain",
"__version__",
)


Expand Down
8 changes: 4 additions & 4 deletions src/decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ class DecFileParser:
"""

__slots__ = (
"_additional_decay_models",
"_dec_file",
"_dec_file_names",
"_grammar",
"_grammar_info",
"_dec_file_names",
"_dec_file",
"_include_ccdecays",
"_parsed_dec_file",
"_parsed_decays",
"_include_ccdecays",
"_additional_decay_models",
)

def __init__(self, *filenames: str | os.PathLike[str]) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/decaylanguage/decay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .decay import DaughtersDict, DecayChain, DecayMode
from .viewer import DecayChainViewer

__all__ = ("DaughtersDict", "DecayMode", "DecayChain", "DecayChainViewer")
__all__ = ("DaughtersDict", "DecayChain", "DecayChainViewer", "DecayMode")


def __dir__() -> tuple[str, ...]:
Expand Down
2 changes: 1 addition & 1 deletion src/decaylanguage/decay/decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ class DecayChain:
unless there is a good motivation not to.
"""

__slots__ = ("mother", "decays")
__slots__ = ("decays", "mother")

def __init__(self, mother: str, decays: dict[str, DecayMode]) -> None:
"""
Expand Down
4 changes: 2 additions & 2 deletions src/decaylanguage/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
__all__ = (
"DescriptorFormat",
"LineFailure",
"charge_conjugate_name",
"filter_lines",
"iter_flatten",
"split",
"filter_lines",
"charge_conjugate_name",
)


Expand Down

0 comments on commit 1147559

Please sign in to comment.