Skip to content

Commit

Permalink
Add None to hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Nov 17, 2023
1 parent 3c4c296 commit d27c85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyplumio/helpers/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def max_value(self) -> ParameterValueType:
return self._values.max_value

@property
def unit_of_measurement(self) -> UnitOfMeasurement | Literal["%"]:
def unit_of_measurement(self) -> UnitOfMeasurement | Literal["%"] | None:
"""A unit of measurement."""
return self.description.unit_of_measurement

Expand Down

0 comments on commit d27c85d

Please sign in to comment.