Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Oct 26, 2023
1 parent fef1f28 commit 7b9a6fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
CommandQuality, ConstantEntry, DataType, Enum, Field, FieldQuality, Idl, Struct, StructTag)

from .base import BaseHandler, HandledDepth
from .context import Context, IdlPostProcessor
from .context import Context
from .derivation import AddBaseInfoPostProcessor
from .parsing import (ApplyConstraint, AttributesToAttribute, AttributesToBitFieldConstantEntry, AttributesToCommand,
AttributesToEvent, AttributesToField, NormalizeDataType, NormalizeName, ParseInt, StringToAccessPrivilege)
Expand All @@ -36,7 +36,7 @@ def is_unused_name(attrs: AttributesImpl):
https://github.com/csa-data-model/projects/issues/363
"""
if not 'name' in attrs:
if 'name' not in attrs:
return False

return attrs['name'] in {'base reserved', 'derived reserved'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def AttributesToBitFieldConstantEntry(attrs) -> ConstantEntry:
"""
assert "name" in attrs

if not 'bit' in attrs:
if 'bit' not in attrs:
# TODO: multi-bit fields not supported in XML currently. Be lenient here to have some
# diff
# Issue: https://github.com/csa-data-model/projects/issues/347
Expand Down

0 comments on commit 7b9a6fc

Please sign in to comment.