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 Dec 2, 2024
1 parent ca1dff1 commit 461a276
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/uproot/interpretation/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def __init__(self, model, members, original=None):
member, value = members[i]
if member is not None and not all_headers_prepended:
all_headers_prepended = True
if member is None and all_headers_prepended or len(members) == 1:
if (member is None and all_headers_prepended) or len(members) == 1:
all_headers_prepended = False
del members[i]

Expand Down
8 changes: 4 additions & 4 deletions src/uproot/reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ def title_of(self, where, recursive=True):
Note that this does not read any data from the file.
"""
if recursive and "/" in where or ":" in where:
if (recursive and "/" in where) or ":" in where:
step, last_item = self.descent_into_path(where)
return step[last_item].title
else:
Expand All @@ -1965,7 +1965,7 @@ def classname_of(self, where, encoded=False, version=None, recursive=True):
Note that this does not read any data from the file.
"""

if recursive and "/" in where or ":" in where:
if (recursive and "/" in where) or ":" in where:
step, last_item = self.descent_into_path(where)
return step[last_item].classname
else:
Expand All @@ -1987,7 +1987,7 @@ def class_of(self, where, version=None, recursive=True):
Note that this does not read any data from the file.
"""
if recursive and "/" in where or ":" in where:
if (recursive and "/" in where) or ":" in where:
return self._file.class_named(
self.classname_of(where, version=version), version=version
)
Expand All @@ -2009,7 +2009,7 @@ def streamer_of(self, where, version="max", recursive=True):
Note that this does not read any data from the file.
"""
if recursive and "/" in where or ":" in where:
if (recursive and "/" in where) or ":" in where:
return self._file.streamer_named(
self.classname_of(where, version=version), version=version
)
Expand Down
14 changes: 7 additions & 7 deletions src/uproot/writing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
)

__all__ = [
"WritableBranch",
"WritableDirectory",
"WritableFile",
"WritableTree",
"create",
"dask_write",
"recreate",
"to_TArray",
"to_TH1x",
"to_TH2x",
Expand All @@ -45,12 +52,5 @@
"to_TProfile2D",
"to_TProfile3D",
"to_writable",
"WritableDirectory",
"WritableFile",
"WritableTree",
"WritableBranch",
"create",
"recreate",
"update",
"dask_write",
]

0 comments on commit 461a276

Please sign in to comment.