Skip to content

Commit

Permalink
Apply ruff recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Oct 30, 2024
1 parent ec7db7b commit 110250e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions harp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from harp.io import REFERENCE_EPOCH, MessageType, read
from harp.reader import create_reader
from harp.schema import read_schema

__all__ = ["REFERENCE_EPOCH", "MessageType", "read", "create_reader", "read_schema"]
2 changes: 1 addition & 1 deletion harp/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def read_schema(file: Union[str, PathLike, TextIO], include_common_registers: bo
return read_schema(fileIO)
else:
schema = parse_yaml_raw_as(Model, file.read())
if not "WhoAmI" in schema.registers and include_common_registers:
if "WhoAmI" not in schema.registers and include_common_registers:
common = _read_common_registers()
schema.registers = dict(common.registers, **schema.registers)
if common.bitMasks:
Expand Down

0 comments on commit 110250e

Please sign in to comment.