Skip to content

Commit

Permalink
Support for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sachasmart-weavik committed Jun 18, 2024
1 parent c4d31db commit 8ddc95c
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 8ddc95c

Please sign in to comment.