--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxS0MvFbhc2J%2B7VcyLsft4hLZH2%2BuqgL8XEHhiEyYm3Lng%40mail.gmail.com.
class A:
pass
# B = A # <--- this is fine
B = C = A # <--- mypy chokes on this
a: B = B()
The error message is:
$ mypy t.py t.py:7: error: Variable "t.B" is not valid as a type t.py:7: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases Found 1 error in 1 file (checked 1 source file)
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAFjzj-KUbWEU2uj%3DdT4BrHbjtzvpMTub2YtMk0eWO2aZnY_EXQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAFjzj-KUbWEU2uj%3DdT4BrHbjtzvpMTub2YtMk0eWO2aZnY_EXQ%40mail.gmail.com.
* mypy - https://github.com/python/mypy/issues/12995
* sympy - https://github.com/sympy/sympy/issues/23647
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxQ%2Bs-i8x02asQWY8%3Dh__zHX%3DybmkOotY%2B3O%3DZben4wZvA%40mail.gmail.com.
--
Oscar
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxTX6yTBpUkWxDoLioGzTKxugyMwfwZz5arVn6CoHR7AnA%40mail.gmail.com.