Open
Description
I did not have this problem in 0.19.1
. After upgrading to 0.20.0
, the below code errors on model.Meta
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from django.db.models import Model
def foo(model: type['Model']):
model.Meta # Cannot access attribute "Meta" for class "type[Model]". Attribute "Meta" is unknownPylance[reportAttributeAccessIssue]