Skip to content

chore: Add type hints to import_utils.py module #39994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

wirthual
Copy link

@wirthual wirthual commented Aug 7, 2025

What does this PR do?

Add type hints to import_utils.py

Based on these docs, this change should avoid errors like:

infinity_emb/inference/loading_strategy.py:10: error: Skipping analyzing "transformers.utils.import_utils": module is installed, but missing library stubs or py.typed marker  [import-untyped]

Before submitting

Who can review?

@stevhliu

@wirthual
Copy link
Author

wirthual commented Aug 7, 2025

Failed image download reason for test failure.

See #40000

@stevhliu
Copy link
Member

stevhliu commented Aug 7, 2025

cc @Rocketknight1

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.

2 participants