Skip to content

Commit

Permalink
Fixes a new static analysis issue
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Jan 15, 2024
1 parent aaec117 commit d776bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _delb/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def universal_name(self) -> str:
@property
def value(self) -> str:
"""The attribute's value."""
value = self._attributes._etree_attrib.get(self._key)
value: bytes | str | None = self._attributes._etree_attrib.get(self._key)
if value is None:
raise InvalidOperation("The attribute was removed from its node.")
return value.decode() if isinstance(value, bytes) else value
Expand Down

0 comments on commit d776bfe

Please sign in to comment.