Skip to content
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

Enhance Type Validation to Handle Callable Bare Types #9030

Open
mdrazak2001 opened this issue Mar 12, 2025 · 0 comments · May be fixed by #9033
Open

Enhance Type Validation to Handle Callable Bare Types #9030

mdrazak2001 opened this issue Mar 12, 2025 · 0 comments · May be fixed by #9033
Assignees

Comments

@mdrazak2001
Copy link
Contributor

Is your feature request related to a problem? Please describe.

  • The current implementation for bare type validation does not adequately support callable bare types due to their unique structure.

Describe the solution you'd like

  • Update the type validation logic to include specific handling for callable bare types by incorporating _check_callable_compatibility. This ensures that callable types are validated correctly and consistently. For example, the test case pytest.param(Callable[[Any], Any], Callable) should pass with the updated implementation.
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 a pull request may close this issue.

2 participants