src/huggingface_hub/commands/delete_cache.py (6 lines): - line 51: TODO: add support for `huggingface-cli delete-cache aaaaaa bbbbbb cccccc (...)` ? - line 52: TODO: add "--keep-last" arg to delete revisions that are not on `main` ref - line 53: TODO: add "--filter" arg to filter repositories by name ? - line 54: TODO: add "--limit" arg to limit to X repos ? - line 55: TODO: add "-y" arg for immediate deletion ? - line 85: # TODO: refactor this + imports in a unified pattern across codebase utils/check_inference_input_params.py (5 lines): - line 17: TODO: check all methods - line 18: TODO: check parameters types - line 19: TODO: check parameters default values - line 20: TODO: check parameters (type, description) are consistent in the docstrings - line 21: TODO: (low priority) automatically generate the input types from the methods src/huggingface_hub/inference/_common.py (3 lines): - line 167: TODO: handle a PIL.Image as input - line 168: TODO: handle base64 as input - line 174: yield get_session().get(content).content # TODO: retrieve as stream and pipe to post request ? src/huggingface_hub/utils/_hf_folder.py (3 lines): - line 25: # TODO: deprecate when adapted in transformers/datasets/gradio - line 43: # TODO: deprecate when adapted in transformers/datasets/gradio - line 58: # TODO: deprecate when adapted in transformers/datasets/gradio src/huggingface_hub/repocard_data.py (2 lines): - line 466: # TODO - maybe handle this similarly to EvalResult? - line 752: # TODO - Check if there cases where this list is longer than one? src/huggingface_hub/_local_folder.py (2 lines): - line 323: TODO: factorize logic with `read_download_metadata`. - line 380: # TODO: can we do better? src/huggingface_hub/hf_file_system.py (2 lines): - line 327: # TODO: use `commit_description` to list all the deleted paths? - line 701: "tree_id": None, # TODO: tree_id of the root directory? src/huggingface_hub/keras_mixin.py (2 lines): - line 476: TODO - Some args above aren't used since we are calling - line 494: # TODO: change this in a future PR. We are not returning a KerasModelHubMixin instance here... src/huggingface_hub/inference/_client.py (2 lines): - line 25: # Some TODO: - line 259: # TODO: this should be handled in provider helpers directly utils/check_task_parameters.py (1 line): - line 660: # TODO: Needs to be improved, maybe using `typing.get_type_hints` instead (we gonna need to access the method though)? src/huggingface_hub/_oauth.py (1 line): - line 158: # TODO: handle generic case (handling OAuth in a non-Space environment with custom dev values) (low priority) src/huggingface_hub/inference/_mcp/mcp_client.py (1 line): - line 192: # ^ TODO: should be handle `get_session_id_callback`? (function to retrieve the current session ID) src/huggingface_hub/constants.py (1 line): - line 138: hf_cache_home = HF_HOME # for backward compatibility. TODO: remove this in 1.0.0 src/huggingface_hub/_commit_api.py (1 line): - line 789: # TODO: (optimization) download regular files to copy concurrently utils/generate_async_inference_client.py (1 line): - line 174: # TODO: this should be handled in provider helpers directly contrib/conftest.py (1 line): - line 49: TODO: Adapt to handle `repo_type` as well src/huggingface_hub/utils/_deprecation.py (1 line): - line 60: TODO: could be useful to be able to set a custom error message. contrib/utils.py (1 line): - line 11: TODO: refactor when https://github.com/huggingface/huggingface_hub/issues/1172 is fixed. src/huggingface_hub/utils/_validators.py (1 line): - line 91: # TODO: add an argument to opt-out validation for specific argument?