Skip to content

Fix: handle future annotations in _process_kwargs_parameters#45128

Open
FaizanImran-blip wants to merge 1 commit intohuggingface:mainfrom
FaizanImran-blip:fix/future-annotations-bug
Open

Fix: handle future annotations in _process_kwargs_parameters#45128
FaizanImran-blip wants to merge 1 commit intohuggingface:mainfrom
FaizanImran-blip:fix/future-annotations-bug

Conversation

@FaizanImran-blip
Copy link
Copy Markdown

This PR fixes a crash in _process_kwargs_parameters that occurred
when a module uses from __future__ import annotations.

  • Prevents AttributeError crash.
  • Adds a test test_future_annotations.py to verify the fix works.

No other functionality is affected.

@FaizanImran-blip
Copy link
Copy Markdown
Author

This PR fixes the crash with future annotations. Tested locally, all tests pass.

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.

1 participant