Skip to content

Commit 8ddc95c

Browse files
Support for python 3.9
1 parent c4d31db commit 8ddc95c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: megaraid.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import re
3+
from typing import Optional
34

45
import smartprom
56

@@ -57,7 +58,7 @@ def get_megaraid_device_type(dev: str, typ: str) -> str:
5758
return "sat" if results["device"]["protocol"] == "ATA" else "scsi"
5859

5960

60-
def get_megaraid_device_id(typ: str) -> str | None:
61+
def get_megaraid_device_id(typ: str) -> Optional[str]:
6162
"""
6263
Returns the device ID on the MegaRAID from the typ string
6364
"""

0 commit comments

Comments
 (0)