mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-01-26 04:46:47 +08:00
make ignore_missing_model_attributes behaviour optional (#66)
make "ignore_missing_model_attributes" behaviour opt-in
This commit is contained in:
@@ -75,7 +75,7 @@ reveal_type(User().my_pk) # E: Revealed type is 'builtins.int*'
|
||||
reveal_type(User().id)
|
||||
[out]
|
||||
main:7: error: Revealed type is 'Any'
|
||||
main:7: error: Default primary key 'id' is not defined
|
||||
main:7: error: "User" has no attribute "id"
|
||||
[/CASE]
|
||||
|
||||
[CASE test_meta_nested_class_allows_subclassing_in_multiple_inheritance]
|
||||
|
||||
Reference in New Issue
Block a user