Skip to content

Commit cdcfae7

Browse files
committed
Fix mypy error
1 parent 6012fe1 commit cdcfae7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lisa/tools/gpu_drivers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import re
55
from abc import abstractmethod
66
from pathlib import PurePosixPath
7-
from typing import Any, List, Optional, Type, Union
7+
from typing import TYPE_CHECKING, Any, List, Optional, Type, Union
88

99
from lisa.base_tools import Sed, Uname, Wget
1010
from lisa.executable import Tool
@@ -28,6 +28,9 @@
2828
from lisa.tools.nvidiasmi import NvidiaSmi
2929
from lisa.util import LisaException, MissingPackagesException, SkippedException
3030

31+
if TYPE_CHECKING:
32+
from lisa.node import Node
33+
3134

3235
class GpuDriver(Tool):
3336
"""
@@ -53,7 +56,7 @@ def command(self) -> str:
5356
@classmethod
5457
def create(
5558
cls,
56-
node: Any,
59+
node: "Node",
5760
*args: Any,
5861
driver_class: Type["GpuDriverInstaller"],
5962
**kwargs: Any,

0 commit comments

Comments
 (0)