do not emit error, if attribute does not exist

This commit is contained in:
Maxim Kurnikov
2018-12-06 17:45:27 +03:00
parent cf6119bf9b
commit 447651c770
5 changed files with 10 additions and 4 deletions

View File

@@ -54,7 +54,6 @@ class User(models.Model):
reveal_type(User().my_pk) # E: Revealed type is 'builtins.int'
reveal_type(User().id) # E: Revealed type is 'Any'
[out]
main:7: error: "User" has no attribute "id"
[CASE test_meta_nested_class_allows_subclassing_in_multiple_inheritance]
from typing import Any