Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Nov 25, 2024
1 parent fb2b9be commit 421b5b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def bit_rate(self, channel: int, stream: str | None = None) -> int | None:

def bit_rate_list(self, channel: int, stream: str | None = None) -> list[int]:
if channel not in self._enc_range:
return None
return []
if stream is None:
stream = "main"

Expand All @@ -997,7 +997,7 @@ def frame_rate(self, channel: int, stream: str | None = None) -> int | None:

def frame_rate_list(self, channel: int, stream: str | None = None) -> list[int]:
if channel not in self._enc_range:
return None
return []
if stream is None:
stream = "main"

Expand Down

0 comments on commit 421b5b4

Please sign in to comment.