Skip to content

Commit a8542b1

Browse files
committed
Oops, brain fart
1 parent e2c971c commit a8542b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/typecheck/models/test_create.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@
8181
class Child(Base): pass
8282
8383
- case: optional_id_fields_for_create_is_error_if_not_autofield
84+
skip: __import__("django").VERSION < (6, 0)
8485
main: |
8586
from myapp.models import Publisher, Book
8687
8788
Book.objects.create(id=None) # E: Incompatible type for "id" of "Book" (got "None", expected "float | int | str | Combinable") [misc]
8889
Book.objects.create(publisher=None) # E: Incompatible type for "publisher" of "Book" (got "None", expected "Publisher | Combinable") [misc]
89-
Book.objects.create(publisher_id=None) # E: Incompatible type for "publisher_id" of "Book" (got "None", expected "Combinable | int | str") [misc]
90+
Book.objects.create(publisher_id=None) # E: Incompatible type for "publisher_id" of "Book" (got "None", expected "float | int | str | Combinable") [misc]
9091
installed_apps:
9192
- myapp
9293
files:

0 commit comments

Comments
 (0)