Closed Hunterlige closed 1 month ago
Although it may not be immediately obvious, this is a duplicate of #8302. A fix is in place and will be included in the next release. Apologies for the regression.
Thank you for your detailed explanation and for taking the time to explain the underlying issue.
This is addressed in pyright 1.1.371.
Describe the bug Hi
isinstance(self, type)
no longer updates the type of the self. The behavior change between v1.1.369 and v1.1.370.Code or Screenshots Playground reproduction: https://pyright-play.net/?pyrightVersion=1.1.370&pythonVersion=3.13&strict=true&code=GYJw9gtgBALgngBwJYDsDmUkQWEMogCmAboQIYA2A%2BvAoQLABQTAxhWQM4dQBCnhACgCUALiZQJUACaFgsQhxgCOhCsFHjJWmXJgKlADxFQA8gg2MtVyQhCpDQzdaRyUYfEg6pFZFC0EqagA0puZiltZWIGSehFAAapQAroQAoiDgIMJOUSTk1LQBquo5WnqKysWOjGyc3ACCAnwqFloIdazsXLxN-K02HcyMZlAAvFAC9VAAPrzVTAtDi4tAA
Works with pyright v1.1.369, but does not work with pyright v1.1.370
VS Code extension or command-line Command-line, pyright v1.1.370