mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 16:27:09 +08:00
enable two more test folders
This commit is contained in:
@@ -74,9 +74,9 @@ class IndexOperation(Operation):
|
||||
class AddIndex(IndexOperation):
|
||||
model_name: str = ...
|
||||
index: Index = ...
|
||||
def __init__(self, model_name: str, index: Index) -> None: ...
|
||||
def __init__(self, model_name: str, index: Union[str, Index]) -> None: ...
|
||||
|
||||
class RemoveIndex(IndexOperation):
|
||||
model_name: str = ...
|
||||
name: str = ...
|
||||
def __init__(self, model_name: str, name: str) -> None: ...
|
||||
def __init__(self, model_name: str, name: Union[str, Index]) -> None: ...
|
||||
|
||||
@@ -74,6 +74,7 @@ class SmallIntegerField(IntegerField): ...
|
||||
class BigIntegerField(IntegerField): ...
|
||||
|
||||
class FloatField(Field):
|
||||
def __set__(self, instance, value: Union[float, int, Combinable]) -> float: ...
|
||||
def __get__(self, instance, owner) -> float: ...
|
||||
|
||||
class DecimalField(Field):
|
||||
@@ -99,6 +100,7 @@ class DecimalField(Field):
|
||||
validators: Iterable[_ValidatorCallable] = ...,
|
||||
error_messages: Optional[_ErrorMessagesToOverride] = ...,
|
||||
): ...
|
||||
def __set__(self, instance, value: Union[str, Combinable]) -> decimal.Decimal: ...
|
||||
def __get__(self, instance, owner) -> decimal.Decimal: ...
|
||||
|
||||
class AutoField(Field):
|
||||
|
||||
Reference in New Issue
Block a user