Skip to content

Use newer typing notation #38934

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 1 commit into
base: main
Choose a base branch
from
Open

Conversation

cyyever
Copy link
Contributor

@cyyever cyyever commented Jun 20, 2025

What does this PR do?

Use newer typing for source files with from __future__ import annotations.

Signed-off-by: cyy <cyyever@outlook.com>
@Rocketknight1
Copy link
Member

Seems like a cool idea but cc @stevhliu will these types still be rendered correctly for docstrings / docs?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@stevhliu
Copy link
Member

Checked the rendered docs/docstrings and they look correct! 👍

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.

4 participants