Skip to content

Commit

Permalink
Merge pull request #52 from sachasmart/master
Browse files Browse the repository at this point in the history
Small update to help those using python 3.9
  • Loading branch information
matusnovak authored Aug 23, 2024
2 parents c4d31db + 8ddc95c commit eb017e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion megaraid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import re
from typing import Optional

import smartprom

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


def get_megaraid_device_id(typ: str) -> str | None:
def get_megaraid_device_id(typ: str) -> Optional[str]:
"""
Returns the device ID on the MegaRAID from the typ string
"""
Expand Down

0 comments on commit eb017e7

Please sign in to comment.