Skip to content

Conversation

@assafvayner
Copy link
Contributor

@assafvayner assafvayner commented Jul 18, 2025

This PR adds a typing file to hf_xet, my particular interest to have this is the lack/limitation of IDE support when working with hf_xet functions from huggingface_hub library in pycharm/vscode.

Note: before releasing a client with this, we will need a huggingface_hub PR to make it adhere for make quality to pass since we've got some questionable type casts in hf_xet usage. Most flagrant is using an Optional[int] as an int

Copy link
Collaborator

@hoytak hoytak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming you're testing this in the IDE and they work...

Thanks for doing this! LGTM.

@assafvayner
Copy link
Contributor Author

I'm assuming you're testing this in the IDE and they work...

Yes, I tested with Pycharm, but I need to also probably verify this with VSCode. I'm holding off a bit on merging this to make sure that it doesn't interfere with huggingface_hub, I expect this will cause lints to fail on huggingface_hub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants