mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 02:41:16 +08:00
some stubs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union, TypeVar, Generic
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union, TypeVar, Generic, Sequence
|
||||
|
||||
from django.db.models.fields import Field
|
||||
|
||||
@@ -31,4 +31,5 @@ class ArrayField(CheckFieldDefaultMixin, Field, Generic[_T]):
|
||||
def validate(self, value: Any, model_instance: Any) -> None: ...
|
||||
def run_validators(self, value: Any) -> None: ...
|
||||
def formfield(self, **kwargs: Any): ...
|
||||
def __set__(self, instance, value: Sequence[_T]): ...
|
||||
def __get__(self, instance, owner) -> List[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user