From d05e739d75888117bb70c2e370201729604b1a64 Mon Sep 17 00:00:00 2001 From: Maxim Kurnikov Date: Mon, 11 Feb 2019 01:29:30 +0300 Subject: [PATCH] fix ci --- django-stubs/db/models/fields/__init__.pyi | 2 +- scripts/typecheck_tests.py | 2 +- test-data/typecheck/{model_create.test => model_init.test} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename test-data/typecheck/{model_create.test => model_init.test} (100%) diff --git a/django-stubs/db/models/fields/__init__.pyi b/django-stubs/db/models/fields/__init__.pyi index 4305953..12428c0 100644 --- a/django-stubs/db/models/fields/__init__.pyi +++ b/django-stubs/db/models/fields/__init__.pyi @@ -64,7 +64,7 @@ class Field(RegisterLookupMixin): def to_python(self, value: Any) -> Any: ... class IntegerField(Field): - def __set__(self, instance, value: Union[int, Combinable, Literal['']]) -> None: ... + def __set__(self, instance, value: Union[int, Combinable, Literal[""]]) -> None: ... def __get__(self, instance, owner) -> int: ... class PositiveIntegerRelDbTypeMixin: diff --git a/scripts/typecheck_tests.py b/scripts/typecheck_tests.py index 3d8a773..9662de0 100644 --- a/scripts/typecheck_tests.py +++ b/scripts/typecheck_tests.py @@ -183,7 +183,7 @@ IGNORED_ERRORS = { 'BandAdmin', 'base class "ModelAdmin" defined the type a', 'base class "InlineModelAdmin" defined the type a', - 'List item 0 has incompatible type "Type[ValidationTestInline]"; expected "Type[BaseModelAdmin]"' + 'List item 0 has incompatible type "Type[ValidationTestInline]"; expected "Type[InlineModelAdmin]"' ], 'migrate_signals': [ 'Value of type "None" is not indexable', diff --git a/test-data/typecheck/model_create.test b/test-data/typecheck/model_init.test similarity index 100% rename from test-data/typecheck/model_create.test rename to test-data/typecheck/model_init.test