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

Bug: resolve the type hint of dataclasses.Field[...] #184

Open
nstarman opened this issue Jul 17, 2024 · 0 comments
Open

Bug: resolve the type hint of dataclasses.Field[...] #184

nstarman opened this issue Jul 17, 2024 · 0 comments

Comments

@nstarman
Copy link
Contributor

nstarman commented Jul 17, 2024

The following MWE will error with

from dataclasses import Field
from typing import Any
def func(x: Field[Any]) -> None: pass

UserWarning: Could not resolve the type hint of `dataclasses.Field[typing.Any]`. I have ended the resolution here to not make your code break, but some types might not be working correctly. Please open an issue at https://github.com/wesselb/plum.

I think this is a beartype thing actually, but it's worth following suggested procedure :)

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

No branches or pull requests

1 participant