Skip to content

Commit e0e33ec

Browse files
committed
fix other lint issues
1 parent ba9ffdf commit e0e33ec

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/together/lib/cli/api/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import re
44
import math
5-
from typing import Union, Literal
5+
from typing import List, Union, Literal
66
from gettext import gettext as _
77
from datetime import datetime
88

@@ -19,7 +19,7 @@ class AutoIntParamType(click.ParamType):
1919
name = "integer_or_max"
2020
_number_class = int
2121

22-
def convert(
22+
def convert( # pyright: ignore[reportImplicitOverride]
2323
self, value: str, param: click.Parameter | None, ctx: click.Context | None
2424
) -> int | Literal["max"] | None:
2525
if value == "max":
@@ -39,7 +39,7 @@ def convert(
3939
class BooleanWithAutoParamType(click.ParamType):
4040
name = "boolean_or_auto"
4141

42-
def convert(
42+
def convert( # pyright: ignore[reportImplicitOverride]
4343
self, value: str, param: click.Parameter | None, ctx: click.Context | None
4444
) -> bool | Literal["auto"] | None:
4545
if value == "auto":
@@ -80,7 +80,7 @@ def _human_readable_time(timedelta: float) -> str:
8080
]
8181

8282
total_seconds = int(timedelta)
83-
parts = []
83+
parts: List[str] = []
8484

8585
for unit_seconds, unit_name in units:
8686
if total_seconds >= unit_seconds:
@@ -110,7 +110,7 @@ def generate_progress_bar(
110110
if isinstance(updated_at_unknown_type, str):
111111
# TODO: Retrieve Fine-tuning job function returns string instead of datetime
112112
update_at = datetime.strptime(updated_at_unknown_type, "%Y-%m-%dT%H:%M:%S.%fZ")
113-
elif isinstance(updated_at_unknown_type, datetime):
113+
elif isinstance(updated_at_unknown_type, datetime): # pyright: ignore[reportUnnecessaryIsInstance]
114114
update_at = updated_at_unknown_type
115115
else:
116116
raise TypeError("Invalid type for updated_at")

0 commit comments

Comments
 (0)