Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2023
1 parent bfc9b82 commit 9c1a656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coffea/nanoevents/schemas/treemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, base_form, *args, **kwargs):
def _build_collections(self, branch_forms):
# Turn any special classes into the appropriate awkward form
composite_objects = list(
set(k.split("/")[0].rstrip("_") for k in branch_forms if "/" in k)
{k.split("/")[0].rstrip("_") for k in branch_forms if "/" in k}
)

composite_behavior = { # Dictionary for overriding the default behavior
Expand Down Expand Up @@ -80,7 +80,7 @@ def _build_collections(self, branch_forms):
composite_behavior.get(objname, "PtEtaPhiELorentzVector"),
)
branch_forms[objname] = form
elif set(x.split(".")[-1] for x in components) == {
elif {x.split(".")[-1] for x in components} == {
"fX",
"fY",
"fZ",
Expand Down

0 comments on commit 9c1a656

Please sign in to comment.