mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 00:07:09 +08:00
add more fields and more tests
This commit is contained in:
@@ -2,5 +2,8 @@ from .base import Model as Model
|
||||
|
||||
from .fields import (AutoField as AutoField,
|
||||
IntegerField as IntegerField,
|
||||
SmallIntegerField as SmallIntegerField,
|
||||
CharField as CharField,
|
||||
Field as Field)
|
||||
Field as Field,
|
||||
SlugField as SlugField,
|
||||
TextField as TextField)
|
||||
|
||||
@@ -14,6 +14,10 @@ class IntegerField(Field):
|
||||
def __get__(self, instance, owner) -> int: ...
|
||||
|
||||
|
||||
class SmallIntegerField(IntegerField):
|
||||
pass
|
||||
|
||||
|
||||
class AutoField(Field):
|
||||
def __get__(self, instance, owner) -> int: ...
|
||||
|
||||
@@ -24,3 +28,10 @@ class CharField(Field):
|
||||
**kwargs): ...
|
||||
def __get__(self, instance, owner) -> str: ...
|
||||
|
||||
|
||||
class SlugField(CharField):
|
||||
pass
|
||||
|
||||
|
||||
class TextField(Field):
|
||||
def __get__(self, instance, owner) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user