Skip to content

Conversation

@danieldk
Copy link
Member

@danieldk danieldk commented Sep 16, 2025

Include the repo and layer name as well as the name of the class that is being compared to (when applicable).

Fixes #143.

Include the repo and layer name as well as the name of the class
that is being compared to (when applicable).
@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.

if len(params) != len(ref_params):
raise TypeError(
"Forward signature does not match: different number of arguments."
f"Forward signature of {repo} does not match `{check_cls.__name__}`: different number of arguments."
Copy link
Member

Choose a reason for hiding this comment

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

Superb! This should be more than enough!

reason="There is something weird when writing to the Hub from a GitHub CI.",
strict=True,
)
@pytest.mark.token
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use skip as discussed? 👀

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it was nicer if it's possible to run the test locally with --token,

@danieldk danieldk merged commit 6c00194 into main Sep 16, 2025
13 checks passed
@danieldk danieldk deleted the better-validation-errors branch September 16, 2025 12:40
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.

Give a better error message when a forward signature does not match

3 participants