filesystem: fix various issues found by mypy

Change-Id: Ib4de80451614712bdf5377a3a5b86156008e2c42
This commit is contained in:
Harald Welte
2021-04-02 17:16:30 +02:00
parent 5a4fd52986
commit 1e45657e0f
2 changed files with 30 additions and 26 deletions

View File

@@ -803,7 +803,7 @@ def get_addr_type(addr):
return None
def sw_match(sw:str, pattern:str) -> str:
def sw_match(sw:str, pattern:str) -> bool:
"""Match given SW against given pattern."""
# Create a masked version of the returned status word
sw_lower = sw.lower()