Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class CommitInfo(str):

# Computed from `pr_url` in `__post_init__`
pr_revision: Optional[str] = field(init=False)
pr_num: Optional[str] = field(init=False)
pr_num: Optional[int] = field(init=False)

def __new__(cls, *args, commit_url: str, **kwargs):
return str.__new__(cls, commit_url)
Expand Down
2 changes: 1 addition & 1 deletion src/huggingface_hub/hf_file_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def modified(self, path: str, **kwargs) -> datetime:
Returns:
`datetime`: Last commit date of the file.
"""
info = self.info(path, **{**kwargs, "expand_info": True})
info = self.info(path, **{**kwargs, "expand_info": True}) # type: ignore
return info["last_commit"]["date"]

def info(self, path: str, refresh: bool = False, revision: Optional[str] = None, **kwargs) -> dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion src/huggingface_hub/repocard_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def __init__(
def _to_dict(self, data_dict):
"""Format the internal data dict. In this case, we convert eval results to a valid model index"""
if self.eval_results is not None:
data_dict["model-index"] = eval_results_to_model_index(self.model_name, self.eval_results)
data_dict["model-index"] = eval_results_to_model_index(self.model_name, self.eval_results) # type: ignore
del data_dict["eval_results"], data_dict["model_name"]


Expand Down
Loading