Skip to content

Commit 494518d

Browse files
committed
fix: fix type hint
1 parent 1e7b098 commit 494518d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dash_tailwindcss_plugin/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
import logging
12
import os
23
import platform
34
import shutil
45
import subprocess
56
import tarfile
6-
from typing_extensions import Self
77
import urllib.request
8-
import logging
98
import zipfile
10-
from typing import Any, Dict, List, Literal, Optional
9+
from typing import Any, Dict, List, Literal, Optional, Tuple
10+
from typing_extensions import Self
1111

1212

1313
# Custom log formatter to add colors for different log levels
@@ -118,12 +118,12 @@ def __init__(self, download_node: bool, node_version: str, is_cli: bool = False)
118118
self.npm_path = self._npm_path()
119119
self.npx_path = self._npx_path()
120120

121-
def check_nodejs_available(self) -> tuple[bool, str]:
121+
def check_nodejs_available(self) -> Tuple[bool, str]:
122122
"""
123123
Check if Node.js is available in PATH
124124
125125
Returns:
126-
tuple[bool, str]: A tuple containing:
126+
Tuple[bool, str]: A tuple containing:
127127
- bool: True if Node.js is available, False otherwise
128128
- str: The version of Node.js if available, empty string otherwise
129129
"""

0 commit comments

Comments
 (0)