-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Foo and Union[Foo, bool] fail to unify, when working with NamedTuple and recursively typed values #3069
Comments
Maybe it thinks that there are two different types named You can debug this more by putting calls to |
The changes required to fix this will likely cause merge conflicts with #3025; so it's probably better to fix it either after that PR is merged in, or inside it. |
Using
|
This is also fixed by #3952 both examples now work as expected, however a warning about forward references not fully supported is (expectedly) emitted. |
Obviously, this example is infinitely recursive. The original code that produced the error was more complicated so I distilled it down to the simplest example that still triggers the error.
Replacing the body of
make_foo
with the following does not get rid of the error, but produces an extra error which may or may not be unrelated.The text was updated successfully, but these errors were encountered: