mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-22 20:01:30 +08:00
add more fields and more tests
This commit is contained in:
@@ -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