Skip to content

Commit

Permalink
chore: no implicit returns of None
Browse files Browse the repository at this point in the history
Explicit is better than implicit.
  • Loading branch information
robberwick committed Nov 17, 2024
1 parent 228df3a commit 219388f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/blinkstick/blinkstick.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,7 @@ def find_first() -> BlinkStick | None:
if d:
return BlinkStick(device=d)

return None

def find_by_serial(serial: str | None = None) -> BlinkStick | None:
"""
Expand All @@ -1451,6 +1452,8 @@ def find_by_serial(serial: str | None = None) -> BlinkStick | None:
if devices:
return BlinkStick(device=devices[0])

return None


def get_blinkstick_package_version() -> str:
return version("blinkstick")

0 comments on commit 219388f

Please sign in to comment.