basedpyright
basedpyright copied to clipboard
Variables of type Unknown | Any are highlighted as types
Description
from typing import Any
test: Any = s
not_a_type = test
Related #1521 and #1554, probably
Also seeing the same issue when setting untyped properties
class A:
def __init__(self):
self._prop = "yes"
@property
def prop(self):
return self._prop
@prop.setter
def prop(self, value):
self._prop = value
a = A()
s = a.prop
a.prop = "hi"
fyi @KurtBoehm
Probably should have mentioned I was using basedpyright 1.33.0, still seeing both issues on 1.34.0
All good, I verified it still happens on the latest commit