Skip to content

Commit b8bb902

Browse files
authored
Fix ty in CI (#3470)
1 parent 52c718a commit b8bb902

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class CommitInfo(str):
392392

393393
# Computed from `pr_url` in `__post_init__`
394394
pr_revision: Optional[str] = field(init=False)
395-
pr_num: Optional[str] = field(init=False)
395+
pr_num: Optional[int] = field(init=False)
396396

397397
def __new__(cls, *args, commit_url: str, **kwargs):
398398
return str.__new__(cls, commit_url)

src/huggingface_hub/hf_file_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def modified(self, path: str, **kwargs) -> datetime:
660660
Returns:
661661
`datetime`: Last commit date of the file.
662662
"""
663-
info = self.info(path, **{**kwargs, "expand_info": True})
663+
info = self.info(path, **{**kwargs, "expand_info": True}) # type: ignore
664664
return info["last_commit"]["date"]
665665

666666
def info(self, path: str, refresh: bool = False, revision: Optional[str] = None, **kwargs) -> dict[str, Any]:

src/huggingface_hub/repocard_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def __init__(
387387
def _to_dict(self, data_dict):
388388
"""Format the internal data dict. In this case, we convert eval results to a valid model index"""
389389
if self.eval_results is not None:
390-
data_dict["model-index"] = eval_results_to_model_index(self.model_name, self.eval_results)
390+
data_dict["model-index"] = eval_results_to_model_index(self.model_name, self.eval_results) # type: ignore
391391
del data_dict["eval_results"], data_dict["model_name"]
392392

393393

0 commit comments

Comments
 (0)