Skip to content

Commit 76e8ac9

Browse files
committed
Add comment explaining mypy ignore directive for arg-type
1 parent bd0a00f commit 76e8ac9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/humanloop/overload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _handle_local_files(
120120
return kwargs
121121

122122
try:
123-
file_content = sync_client.get_file_content(normalized_path, file_type) # type: ignore [arg-type]
123+
file_content = sync_client.get_file_content(normalized_path, file_type) # type: ignore[arg-type] # file_type was checked above
124124
kwargs[file_type] = file_content
125125
except HumanloopRuntimeError as e:
126126
raise HumanloopRuntimeError(f"Failed to use local file for `{normalized_path}`: {str(e)}")

0 commit comments

Comments
 (0)