Skip to content

Commit

Permalink
Add missing type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper committed Jul 28, 2023
1 parent e307a67 commit 5458791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissect/cstruct/types/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def _write(cls, stream: BinaryIO, data: Union) -> int:
class Union(Structure, metaclass=UnionMetaType):
"""Base class for cstruct union type classes."""

def __eq__(self, other: Any):
def __eq__(self, other: Any) -> bool:
if self.__class__ is other.__class__:
return bytes(self) == bytes(other)
return False

Check warning on line 462 in dissect/cstruct/types/structure.py

View check run for this annotation

Codecov / codecov/patch

dissect/cstruct/types/structure.py#L462

Added line #L462 was not covered by tests
Expand Down

0 comments on commit 5458791

Please sign in to comment.