diff --git a/django-stubs/forms/models.pyi b/django-stubs/forms/models.pyi index 1cb275f..2e471de 100644 --- a/django-stubs/forms/models.pyi +++ b/django-stubs/forms/models.pyi @@ -2,6 +2,7 @@ from datetime import datetime from typing import ( Any, Callable, + Collection, Dict, Iterator, List, @@ -36,7 +37,7 @@ from django.db.models import ForeignKey ALL_FIELDS: str -_Fields = Union[List[Union[Callable, str]], Sequence[str], Literal["__all__"]] +_Fields = Union[Collection[str], Literal["__all__"]] _Labels = Dict[str, str] _ErrorMessages = Dict[str, Dict[str, str]] diff --git a/setup.py b/setup.py index 63b28bd..6381f70 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ with open("README.md") as f: readme = f.read() dependencies = [ - "mypy>=0.790", + "mypy>=0.900", "typing-extensions", "django", "django-stubs-ext",