gpio_export return type (#29158)

return type
old-commit-hash: 922e27fa5a7b3bf282191f9e91e6eeaaa76adf20
This commit is contained in:
Maxime Desroches
2023-07-26 16:01:26 -07:00
committed by GitHub
parent 0903b55fca
commit 80101b0e20

View File

@@ -25,7 +25,7 @@ def gpio_read(pin: int) -> Optional[bool]:
return val
def gpio_export(pin: int):
def gpio_export(pin: int) -> None:
try:
with open("/sys/class/gpio/export", 'w') as f:
f.write(str(pin))