Open bushwhackr opened 1 year ago
Thanks @bushwhackr for the report; I can reproduce this.
inferred.qname()
on this line of Pylint code is .Union
on Python 3.10 but it is ._SpecialForm
on Python 3.8.
Pinging @DanielNoord because I notice you worked on this checker :) Do you think, to simplify things, the checker should focus solely on explicit type aliases? In theory a valid type alias can assign to any type: https://docs.python.org/3/library/typing.html#type-aliases
I removed checking of Callables
somewhere during the creation of the checker as it created false positives. I would be in favour of expanding the check to also cover ._SpecialForm
and see what the primer tells us.
Question
Given
a.py
Running pylint in python 3.10 results in an error:
Running pylint in python 3.8 does not lead to an error at all.
python 3.10 env
python 3.8 env
Documentation for future user
Maybe a direct reference to the PEP.
Additional context
No response