Skip to content

Commit

Permalink
chore: update import comments
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Jan 24, 2025
1 parent ac51739 commit a6fbf28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nvitop/api/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
from collections.abc import Callable, Hashable, Sized
from collections.abc import Set as AbstractSet
from typing import TypeVar
from typing_extensions import ParamSpec, Self
from typing_extensions import (
ParamSpec, # Python 3.10+
Self, # Python 3.11+
)

_P = ParamSpec('_P')
_T = TypeVar('_T')
Expand Down
2 changes: 1 addition & 1 deletion nvitop/api/termcolor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

if TYPE_CHECKING:
from collections.abc import Iterable
from typing_extensions import Literal
from typing_extensions import Literal # Python 3.8+

Attribute = Literal[
'bold',
Expand Down

0 comments on commit a6fbf28

Please sign in to comment.