mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 18:31:15 +08:00
add clean django-stubs folder, add some tests
This commit is contained in:
0
django-stubs/contrib/__init__.pyi
Normal file
0
django-stubs/contrib/__init__.pyi
Normal file
0
django-stubs/contrib/postgres/__init__.pyi
Normal file
0
django-stubs/contrib/postgres/__init__.pyi
Normal file
1
django-stubs/contrib/postgres/fields/__init__.pyi
Normal file
1
django-stubs/contrib/postgres/fields/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from .array import ArrayField as ArrayField
|
||||
11
django-stubs/contrib/postgres/fields/array.pyi
Normal file
11
django-stubs/contrib/postgres/fields/array.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
from typing import List, Any
|
||||
|
||||
from django.contrib.postgres.fields.mixins import CheckFieldDefaultMixin
|
||||
from django.db.models import Field
|
||||
|
||||
|
||||
class ArrayField(CheckFieldDefaultMixin, Field):
|
||||
def __init__(self,
|
||||
base_field: Field,
|
||||
**kwargs): ...
|
||||
def __get__(self, instance, owner) -> List[Any]: ...
|
||||
2
django-stubs/contrib/postgres/fields/mixins.pyi
Normal file
2
django-stubs/contrib/postgres/fields/mixins.pyi
Normal file
@@ -0,0 +1,2 @@
|
||||
class CheckFieldDefaultMixin:
|
||||
pass
|
||||
Reference in New Issue
Block a user