mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-13 15:31:55 +08:00
Better linting config (#664)
* Better linting config * Applies isort on django-stubs, only style changes * Fixes black and isort compat
This commit is contained in:
@@ -4,7 +4,7 @@ default_language_version:
|
|||||||
python: python3.9
|
python: python3.9
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.3.0
|
rev: v4.0.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
@@ -12,20 +12,26 @@ repos:
|
|||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.7.3
|
rev: v2.20.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: ["--py36-plus"]
|
args: ["--py36-plus"]
|
||||||
- repo: https://github.com/pre-commit/mirrors-isort
|
- repo: https://github.com/pre-commit/mirrors-isort
|
||||||
rev: v5.6.4
|
rev: v5.9.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
name: isort (python)
|
||||||
|
args: ["--profile", "black"]
|
||||||
|
- id: isort
|
||||||
|
name: isort (pyi)
|
||||||
|
types: [pyi]
|
||||||
|
args: ["--profile", "black"]
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 20.8b1
|
rev: 21.6b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.8.4
|
rev: 3.9.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
- repo: local
|
- repo: local
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ black==21.6b0
|
|||||||
requests==2.24.0
|
requests==2.24.0
|
||||||
coreapi==2.3.3
|
coreapi==2.3.3
|
||||||
gitpython==3.1.9
|
gitpython==3.1.9
|
||||||
pre-commit==2.7.1
|
pre-commit==2.13.0
|
||||||
pytest==6.1.1
|
pytest==6.1.1
|
||||||
pytest-mypy-plugins==1.7.0
|
pytest-mypy-plugins==1.7.0
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from typing import Any, NamedTuple
|
from typing import Any, NamedTuple
|
||||||
|
|
||||||
from .utils.version import get_version as get_version
|
from .utils.version import get_version as get_version
|
||||||
|
|
||||||
VERSION: Any
|
VERSION: Any
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
from .config import AppConfig as AppConfig
|
from .config import AppConfig as AppConfig
|
||||||
|
|
||||||
from .registry import apps as apps
|
from .registry import apps as apps
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any, Iterator, Type, Optional, Dict
|
from typing import Any, Dict, Iterator, Optional, Type
|
||||||
|
|
||||||
from django.apps.registry import Apps
|
from django.apps.registry import Apps
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
from typing import Dict, Any
|
from typing import Any, Dict
|
||||||
|
|
||||||
LANG_INFO: Dict[str, Any] = ...
|
LANG_INFO: Dict[str, Any] = ...
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
# Stubs for django.conf.urls (Python 3.5)
|
# Stubs for django.conf.urls (Python 3.5)
|
||||||
from typing import Any, Callable, Dict, Optional, overload, Sequence, Tuple, Union
|
from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Union, overload
|
||||||
|
|
||||||
from django.http.response import HttpResponse, HttpResponseBase
|
from django.http.response import HttpResponse, HttpResponseBase
|
||||||
|
from django.urls import URLPattern, URLResolver
|
||||||
from django.urls import URLResolver, URLPattern
|
|
||||||
|
|
||||||
handler400: Union[str, Callable[..., HttpResponse]] = ...
|
handler400: Union[str, Callable[..., HttpResponse]] = ...
|
||||||
handler403: Union[str, Callable[..., HttpResponse]] = ...
|
handler403: Union[str, Callable[..., HttpResponse]] = ...
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any, List, Tuple, Callable
|
from typing import Any, Callable, List, Tuple
|
||||||
|
|
||||||
from django.urls.resolvers import URLPattern
|
from django.urls.resolvers import URLPattern
|
||||||
|
|
||||||
|
|||||||
@@ -1,25 +1,23 @@
|
|||||||
from .decorators import action as action, register as register
|
|
||||||
from .filters import (
|
|
||||||
AllValuesFieldListFilter as AllValuesFieldListFilter,
|
|
||||||
BooleanFieldListFilter as BooleanFieldListFilter,
|
|
||||||
ChoicesFieldListFilter as ChoicesFieldListFilter,
|
|
||||||
DateFieldListFilter as DateFieldListFilter,
|
|
||||||
FieldListFilter as FieldListFilter,
|
|
||||||
ListFilter as ListFilter,
|
|
||||||
RelatedFieldListFilter as RelatedFieldListFilter,
|
|
||||||
RelatedOnlyFieldListFilter as RelatedOnlyFieldListFilter,
|
|
||||||
SimpleListFilter as SimpleListFilter,
|
|
||||||
EmptyFieldListFilter as EmptyFieldListFilter,
|
|
||||||
)
|
|
||||||
from .helpers import ACTION_CHECKBOX_NAME as ACTION_CHECKBOX_NAME
|
|
||||||
from .options import (
|
|
||||||
HORIZONTAL as HORIZONTAL,
|
|
||||||
VERTICAL as VERTICAL,
|
|
||||||
ModelAdmin as ModelAdmin,
|
|
||||||
StackedInline as StackedInline,
|
|
||||||
TabularInline as TabularInline,
|
|
||||||
)
|
|
||||||
from .sites import AdminSite as AdminSite, site as site
|
|
||||||
from . import checks as checks
|
from . import checks as checks
|
||||||
|
from .decorators import action as action
|
||||||
|
from .decorators import register as register
|
||||||
|
from .filters import AllValuesFieldListFilter as AllValuesFieldListFilter
|
||||||
|
from .filters import BooleanFieldListFilter as BooleanFieldListFilter
|
||||||
|
from .filters import ChoicesFieldListFilter as ChoicesFieldListFilter
|
||||||
|
from .filters import DateFieldListFilter as DateFieldListFilter
|
||||||
|
from .filters import EmptyFieldListFilter as EmptyFieldListFilter
|
||||||
|
from .filters import FieldListFilter as FieldListFilter
|
||||||
|
from .filters import ListFilter as ListFilter
|
||||||
|
from .filters import RelatedFieldListFilter as RelatedFieldListFilter
|
||||||
|
from .filters import RelatedOnlyFieldListFilter as RelatedOnlyFieldListFilter
|
||||||
|
from .filters import SimpleListFilter as SimpleListFilter
|
||||||
|
from .helpers import ACTION_CHECKBOX_NAME as ACTION_CHECKBOX_NAME
|
||||||
|
from .options import HORIZONTAL as HORIZONTAL
|
||||||
|
from .options import VERTICAL as VERTICAL
|
||||||
|
from .options import ModelAdmin as ModelAdmin
|
||||||
|
from .options import StackedInline as StackedInline
|
||||||
|
from .options import TabularInline as TabularInline
|
||||||
|
from .sites import AdminSite as AdminSite
|
||||||
|
from .sites import site as site
|
||||||
|
|
||||||
def autodiscover() -> None: ...
|
def autodiscover() -> None: ...
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
from typing import Any, List, Optional, Sequence
|
from typing import Any, List, Optional, Sequence
|
||||||
|
|
||||||
|
from django.apps.config import AppConfig
|
||||||
from django.contrib.admin.options import BaseModelAdmin
|
from django.contrib.admin.options import BaseModelAdmin
|
||||||
from django.core.checks.messages import CheckMessage, Error
|
from django.core.checks.messages import CheckMessage, Error
|
||||||
|
|
||||||
from django.apps.config import AppConfig
|
|
||||||
|
|
||||||
def check_admin_app(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[Error]: ...
|
def check_admin_app(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[Error]: ...
|
||||||
def check_dependencies(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[Error]: ...
|
def check_dependencies(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[Error]: ...
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Callable, Optional, Type, Sequence, Union, TypeVar, Any
|
from typing import Any, Callable, Optional, Sequence, Type, TypeVar, Union
|
||||||
|
|
||||||
from django.contrib.admin import ModelAdmin
|
from django.contrib.admin import ModelAdmin
|
||||||
from django.contrib.admin.sites import AdminSite
|
from django.contrib.admin.sites import AdminSite
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Iterator
|
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type
|
||||||
|
|
||||||
from django.contrib.admin.options import ModelAdmin
|
from django.contrib.admin.options import ModelAdmin
|
||||||
from django.core.handlers.wsgi import WSGIRequest
|
from django.core.handlers.wsgi import WSGIRequest
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
|
from django.db.models.fields import Field
|
||||||
from django.db.models.fields.related import RelatedField
|
from django.db.models.fields.related import RelatedField
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
|
|
||||||
from django.db.models.fields import Field
|
|
||||||
|
|
||||||
class ListFilter:
|
class ListFilter:
|
||||||
title: Any = ...
|
title: Any = ...
|
||||||
template: str = ...
|
template: str = ...
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union, Iterable
|
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Tuple, Union
|
||||||
|
|
||||||
|
from django import forms
|
||||||
|
from django.db.models.fields import AutoField
|
||||||
from django.forms.boundfield import BoundField
|
from django.forms.boundfield import BoundField
|
||||||
from django.forms.forms import BaseForm
|
from django.forms.forms import BaseForm
|
||||||
from django.forms.utils import ErrorDict
|
from django.forms.utils import ErrorDict
|
||||||
from django.forms.widgets import Media, Widget
|
from django.forms.widgets import Media, Widget
|
||||||
from django.utils.safestring import SafeText
|
from django.utils.safestring import SafeText
|
||||||
|
|
||||||
from django import forms
|
|
||||||
from django.db.models.fields import AutoField
|
|
||||||
|
|
||||||
ACTION_CHECKBOX_NAME: str
|
ACTION_CHECKBOX_NAME: str
|
||||||
|
|
||||||
class ActionForm(forms.Form):
|
class ActionForm(forms.Form):
|
||||||
|
|||||||
@@ -2,9 +2,8 @@ from typing import Any, Optional, Union
|
|||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
from django.db.models.base import Model
|
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.db.models.base import Model
|
||||||
|
|
||||||
ADDITION: int
|
ADDITION: int
|
||||||
CHANGE: int
|
CHANGE: int
|
||||||
|
|||||||
@@ -6,20 +6,16 @@ from typing import (
|
|||||||
Generic,
|
Generic,
|
||||||
Iterator,
|
Iterator,
|
||||||
List,
|
List,
|
||||||
|
Mapping,
|
||||||
Optional,
|
Optional,
|
||||||
Sequence,
|
Sequence,
|
||||||
Set,
|
Set,
|
||||||
Tuple,
|
Tuple,
|
||||||
Type,
|
Type,
|
||||||
Union,
|
|
||||||
Mapping,
|
|
||||||
TypeVar,
|
TypeVar,
|
||||||
|
Union,
|
||||||
)
|
)
|
||||||
|
|
||||||
from django.forms.forms import BaseForm
|
|
||||||
from django.forms.models import BaseInlineFormSet
|
|
||||||
from typing_extensions import Literal, TypedDict
|
|
||||||
|
|
||||||
from django.contrib.admin.filters import ListFilter
|
from django.contrib.admin.filters import ListFilter
|
||||||
from django.contrib.admin.models import LogEntry
|
from django.contrib.admin.models import LogEntry
|
||||||
from django.contrib.admin.sites import AdminSite
|
from django.contrib.admin.sites import AdminSite
|
||||||
@@ -29,19 +25,20 @@ from django.contrib.contenttypes.models import ContentType
|
|||||||
from django.core.checks.messages import CheckMessage
|
from django.core.checks.messages import CheckMessage
|
||||||
from django.core.paginator import Paginator
|
from django.core.paginator import Paginator
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
|
from django.db.models.fields import Field
|
||||||
from django.db.models.fields.related import ForeignKey, ManyToManyField, RelatedField
|
from django.db.models.fields.related import ForeignKey, ManyToManyField, RelatedField
|
||||||
from django.db.models.options import Options
|
from django.db.models.options import Options
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
from django.forms.fields import TypedChoiceField
|
from django.forms.fields import TypedChoiceField
|
||||||
from django.forms.models import ModelChoiceField, ModelMultipleChoiceField
|
from django.forms.forms import BaseForm
|
||||||
|
from django.forms.models import BaseInlineFormSet, ModelChoiceField, ModelMultipleChoiceField
|
||||||
from django.forms.widgets import Media
|
from django.forms.widgets import Media
|
||||||
from django.http.request import HttpRequest
|
from django.http.request import HttpRequest
|
||||||
from django.http.response import HttpResponse, HttpResponseBase, HttpResponseRedirect, JsonResponse
|
from django.http.response import HttpResponse, HttpResponseBase, HttpResponseRedirect, JsonResponse
|
||||||
from django.template.response import TemplateResponse
|
from django.template.response import TemplateResponse
|
||||||
from django.urls.resolvers import URLPattern
|
from django.urls.resolvers import URLPattern
|
||||||
from django.utils.safestring import SafeText
|
from django.utils.safestring import SafeText
|
||||||
|
from typing_extensions import Literal, TypedDict
|
||||||
from django.db.models.fields import Field
|
|
||||||
|
|
||||||
IS_POPUP_VAR: str
|
IS_POPUP_VAR: str
|
||||||
TO_FIELD_VAR: str
|
TO_FIELD_VAR: str
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, U
|
|||||||
from django.apps.config import AppConfig
|
from django.apps.config import AppConfig
|
||||||
from django.contrib.admin.options import ModelAdmin
|
from django.contrib.admin.options import ModelAdmin
|
||||||
from django.contrib.auth.forms import AuthenticationForm
|
from django.contrib.auth.forms import AuthenticationForm
|
||||||
|
from django.core.checks import CheckMessage
|
||||||
from django.core.handlers.wsgi import WSGIRequest
|
from django.core.handlers.wsgi import WSGIRequest
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
from django.http.response import HttpResponse
|
from django.http.response import HttpResponse
|
||||||
from django.template.response import TemplateResponse
|
from django.template.response import TemplateResponse
|
||||||
from django.urls import URLResolver, URLPattern
|
from django.urls import URLPattern, URLResolver
|
||||||
from django.utils.functional import LazyObject
|
from django.utils.functional import LazyObject
|
||||||
from django.core.checks import CheckMessage
|
|
||||||
|
|
||||||
if sys.version_info >= (3, 9):
|
if sys.version_info >= (3, 9):
|
||||||
from weakref import WeakSet
|
from weakref import WeakSet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any, Dict, Iterator, List, Optional, Union, Iterable
|
from typing import Any, Dict, Iterable, Iterator, List, Optional, Union
|
||||||
|
|
||||||
from django.contrib.admin.filters import FieldListFilter
|
from django.contrib.admin.filters import FieldListFilter
|
||||||
from django.contrib.admin.templatetags.base import InclusionAdminNode
|
from django.contrib.admin.templatetags.base import InclusionAdminNode
|
||||||
|
|||||||
@@ -9,13 +9,12 @@ from django.contrib.auth.forms import AdminPasswordChangeForm
|
|||||||
from django.core.handlers.wsgi import WSGIRequest
|
from django.core.handlers.wsgi import WSGIRequest
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.db.models.deletion import Collector
|
from django.db.models.deletion import Collector
|
||||||
|
from django.db.models.fields import Field, reverse_related
|
||||||
from django.db.models.fields.reverse_related import ManyToOneRel
|
from django.db.models.fields.reverse_related import ManyToOneRel
|
||||||
from django.db.models.options import Options
|
from django.db.models.options import Options
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
from django.forms.forms import BaseForm
|
from django.forms.forms import BaseForm
|
||||||
|
|
||||||
from django.db.models.fields import Field, reverse_related
|
|
||||||
|
|
||||||
class FieldIsAForeignKeyColumnName(Exception): ...
|
class FieldIsAForeignKeyColumnName(Exception): ...
|
||||||
|
|
||||||
def lookup_needs_distinct(opts: Options, lookup_path: str) -> bool: ...
|
def lookup_needs_distinct(opts: Options, lookup_path: str) -> bool: ...
|
||||||
|
|||||||
@@ -2,17 +2,14 @@ from collections import OrderedDict
|
|||||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
|
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
|
||||||
|
|
||||||
from django.contrib.admin.filters import ListFilter, SimpleListFilter
|
from django.contrib.admin.filters import ListFilter, SimpleListFilter
|
||||||
from django.contrib.admin.options import ( # noqa: F401
|
from django.contrib.admin.options import IS_POPUP_VAR as IS_POPUP_VAR # noqa: F401
|
||||||
ModelAdmin,
|
from django.contrib.admin.options import TO_FIELD_VAR as TO_FIELD_VAR
|
||||||
IS_POPUP_VAR as IS_POPUP_VAR,
|
from django.contrib.admin.options import ModelAdmin
|
||||||
TO_FIELD_VAR as TO_FIELD_VAR,
|
|
||||||
)
|
|
||||||
from django.core.handlers.wsgi import WSGIRequest
|
from django.core.handlers.wsgi import WSGIRequest
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.db.models.expressions import Combinable, CombinedExpression, OrderBy
|
from django.db.models.expressions import Combinable, CombinedExpression, OrderBy
|
||||||
from django.db.models.query import QuerySet
|
|
||||||
|
|
||||||
from django.db.models.options import Options
|
from django.db.models.options import Options
|
||||||
|
from django.db.models.query import QuerySet
|
||||||
from django.forms.formsets import BaseFormSet
|
from django.forms.formsets import BaseFormSet
|
||||||
|
|
||||||
ALL_VAR: str
|
ALL_VAR: str
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
from typing import Any, Dict, Optional, Tuple, Union
|
from typing import Any, Dict, Optional, Tuple, Union
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
|
from django import forms
|
||||||
from django.contrib.admin.sites import AdminSite
|
from django.contrib.admin.sites import AdminSite
|
||||||
from django.db.models.fields.reverse_related import ForeignObjectRel, ManyToOneRel
|
from django.db.models.fields.reverse_related import ForeignObjectRel, ManyToOneRel
|
||||||
from django.forms.models import ModelChoiceIterator
|
from django.forms.models import ModelChoiceIterator
|
||||||
from django.forms.widgets import Media
|
from django.forms.widgets import Media
|
||||||
|
|
||||||
from django import forms
|
|
||||||
|
|
||||||
class FilteredSelectMultiple(forms.SelectMultiple):
|
class FilteredSelectMultiple(forms.SelectMultiple):
|
||||||
@property
|
@property
|
||||||
def media(self) -> Media: ...
|
def media(self) -> Media: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.apps import AppConfig as AppConfig
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.apps import AppConfig as AppConfig
|
||||||
|
|
||||||
class AdminDocsConfig(AppConfig):
|
class AdminDocsConfig(AppConfig):
|
||||||
name: str = ...
|
name: str = ...
|
||||||
verbose_name: Any = ...
|
verbose_name: Any = ...
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib import admin
|
||||||
from django.core.handlers.wsgi import WSGIRequest
|
from django.core.handlers.wsgi import WSGIRequest
|
||||||
from django.http.response import HttpResponse
|
from django.http.response import HttpResponse
|
||||||
|
|
||||||
from django.contrib import admin
|
|
||||||
|
|
||||||
csrf_protect_m: Any
|
csrf_protect_m: Any
|
||||||
sensitive_post_parameters_m: Any
|
sensitive_post_parameters_m: Any
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
from typing import Any, Optional, Set, Union
|
from typing import Any, Optional, Set, Union
|
||||||
|
|
||||||
from django.contrib.auth.base_user import AbstractBaseUser
|
from django.contrib.auth.base_user import AbstractBaseUser
|
||||||
from django.contrib.auth.models import AnonymousUser, User, Permission
|
from django.contrib.auth.models import AnonymousUser, Permission, User
|
||||||
|
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.http.request import HttpRequest
|
from django.http.request import HttpRequest
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import sys
|
import sys
|
||||||
from typing import Any, Optional, Tuple, List, overload, TypeVar, Union
|
from typing import Any, List, Optional, Tuple, TypeVar, Union, overload
|
||||||
|
|
||||||
|
from django.db import models
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.db.models.expressions import Combinable
|
from django.db.models.expressions import Combinable
|
||||||
from django.db.models.fields import BooleanField
|
from django.db.models.fields import BooleanField
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
if sys.version_info < (3, 8):
|
||||||
from typing_extensions import Literal
|
from typing_extensions import Literal
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
from typing import Any, List, Optional, Sequence
|
from typing import Any, List, Optional, Sequence
|
||||||
|
|
||||||
from django.core.checks.messages import CheckMessage
|
|
||||||
|
|
||||||
from django.apps.config import AppConfig
|
from django.apps.config import AppConfig
|
||||||
|
from django.core.checks.messages import CheckMessage
|
||||||
|
|
||||||
def check_user_model(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[CheckMessage]: ...
|
def check_user_model(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[CheckMessage]: ...
|
||||||
def check_models_permissions(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[CheckMessage]: ...
|
def check_models_permissions(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[CheckMessage]: ...
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
from typing import Callable, List, Optional, Set, Union, TypeVar, overload
|
from typing import Callable, List, Optional, Set, TypeVar, Union, overload
|
||||||
|
|
||||||
from django.contrib.auth import REDIRECT_FIELD_NAME as REDIRECT_FIELD_NAME # noqa: F401
|
from django.contrib.auth import REDIRECT_FIELD_NAME as REDIRECT_FIELD_NAME # noqa: F401
|
||||||
from django.http.response import HttpResponseBase
|
|
||||||
|
|
||||||
from django.contrib.auth.models import AbstractUser
|
from django.contrib.auth.models import AbstractUser
|
||||||
|
from django.http.response import HttpResponseBase
|
||||||
|
|
||||||
_VIEW = TypeVar("_VIEW", bound=Callable[..., HttpResponseBase])
|
_VIEW = TypeVar("_VIEW", bound=Callable[..., HttpResponseBase])
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
from typing import Any, Dict, Iterator, Optional
|
from typing import Any, Dict, Iterator, Optional
|
||||||
|
|
||||||
|
from django import forms
|
||||||
from django.contrib.auth.base_user import AbstractBaseUser
|
from django.contrib.auth.base_user import AbstractBaseUser
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.contrib.auth.tokens import PasswordResetTokenGenerator
|
from django.contrib.auth.tokens import PasswordResetTokenGenerator
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.core.handlers.wsgi import WSGIRequest
|
from django.core.handlers.wsgi import WSGIRequest
|
||||||
|
|
||||||
from django import forms
|
|
||||||
|
|
||||||
UserModel: Any
|
UserModel: Any
|
||||||
|
|
||||||
class ReadOnlyPasswordHashWidget(forms.Widget):
|
class ReadOnlyPasswordHashWidget(forms.Widget):
|
||||||
|
|||||||
@@ -2,14 +2,14 @@ import sys
|
|||||||
from typing import Any, Collection, Optional, Set, Tuple, Type, TypeVar, Union
|
from typing import Any, Collection, Optional, Set, Tuple, Type, TypeVar, Union
|
||||||
|
|
||||||
from django.contrib.auth.backends import ModelBackend
|
from django.contrib.auth.backends import ModelBackend
|
||||||
from django.contrib.auth.base_user import AbstractBaseUser as AbstractBaseUser, BaseUserManager as BaseUserManager
|
from django.contrib.auth.base_user import AbstractBaseUser as AbstractBaseUser
|
||||||
|
from django.contrib.auth.base_user import BaseUserManager as BaseUserManager
|
||||||
from django.contrib.auth.validators import UnicodeUsernameValidator
|
from django.contrib.auth.validators import UnicodeUsernameValidator
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
|
from django.db import models
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.db.models.manager import EmptyManager
|
from django.db.models.manager import EmptyManager
|
||||||
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
if sys.version_info < (3, 8):
|
||||||
from typing_extensions import Literal
|
from typing_extensions import Literal
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
from typing import Any, List, Optional, Sequence
|
from typing import Any, List, Optional, Sequence
|
||||||
|
|
||||||
from django.core.checks.messages import CheckMessage
|
|
||||||
|
|
||||||
from django.apps.config import AppConfig
|
from django.apps.config import AppConfig
|
||||||
|
from django.core.checks.messages import CheckMessage
|
||||||
|
|
||||||
def check_generic_foreign_keys(
|
def check_generic_foreign_keys(
|
||||||
app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any
|
app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ from django.contrib.contenttypes.models import ContentType
|
|||||||
from django.core.checks.messages import CheckMessage
|
from django.core.checks.messages import CheckMessage
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.db.models.expressions import Combinable
|
from django.db.models.expressions import Combinable
|
||||||
|
from django.db.models.fields import Field, PositiveIntegerField
|
||||||
from django.db.models.fields.mixins import FieldCacheMixin
|
from django.db.models.fields.mixins import FieldCacheMixin
|
||||||
from django.db.models.fields.related import ForeignObject
|
from django.db.models.fields.related import ForeignObject
|
||||||
from django.db.models.fields.related_descriptors import ReverseManyToOneDescriptor
|
from django.db.models.fields.related_descriptors import ReverseManyToOneDescriptor
|
||||||
@@ -12,8 +13,6 @@ from django.db.models.query import QuerySet
|
|||||||
from django.db.models.query_utils import FilteredRelation, PathInfo
|
from django.db.models.query_utils import FilteredRelation, PathInfo
|
||||||
from django.db.models.sql.where import WhereNode
|
from django.db.models.sql.where import WhereNode
|
||||||
|
|
||||||
from django.db.models.fields import Field, PositiveIntegerField
|
|
||||||
|
|
||||||
class GenericForeignKey(FieldCacheMixin):
|
class GenericForeignKey(FieldCacheMixin):
|
||||||
# django-stubs implementation only fields
|
# django-stubs implementation only fields
|
||||||
_pyi_private_set_type: Union[Any, Combinable]
|
_pyi_private_set_type: Union[Any, Combinable]
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
from typing import Any, Dict, List
|
from typing import Any, Dict, List
|
||||||
|
|
||||||
from django.db.models.deletion import Collector
|
|
||||||
|
|
||||||
from django.core.management import BaseCommand
|
from django.core.management import BaseCommand
|
||||||
|
from django.db.models.deletion import Collector
|
||||||
|
|
||||||
class Command(BaseCommand): ...
|
class Command(BaseCommand): ...
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib import admin as admin
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib import admin as admin
|
||||||
|
|
||||||
class FlatPageAdmin(admin.ModelAdmin):
|
class FlatPageAdmin(admin.ModelAdmin):
|
||||||
form: Any = ...
|
form: Any = ...
|
||||||
fieldsets: Any = ...
|
fieldsets: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.apps import AppConfig as AppConfig
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.apps import AppConfig as AppConfig
|
||||||
|
|
||||||
class FlatPagesConfig(AppConfig):
|
class FlatPagesConfig(AppConfig):
|
||||||
name: str = ...
|
name: str = ...
|
||||||
verbose_name: Any = ...
|
verbose_name: Any = ...
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
from django.contrib.sites.models import Site
|
from django.contrib.sites.models import Site
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
class FlatPage(models.Model):
|
class FlatPage(models.Model):
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
from django.contrib.admin import (
|
from django.contrib.admin import HORIZONTAL as HORIZONTAL
|
||||||
AdminSite as AdminSite,
|
from django.contrib.admin import VERTICAL as VERTICAL
|
||||||
HORIZONTAL as HORIZONTAL,
|
from django.contrib.admin import AdminSite as AdminSite
|
||||||
ModelAdmin as ModelAdmin,
|
from django.contrib.admin import ModelAdmin as ModelAdmin
|
||||||
StackedInline as StackedInline,
|
from django.contrib.admin import StackedInline as StackedInline
|
||||||
TabularInline as TabularInline,
|
from django.contrib.admin import TabularInline as TabularInline
|
||||||
VERTICAL as VERTICAL,
|
from django.contrib.admin import autodiscover as autodiscover
|
||||||
autodiscover as autodiscover,
|
from django.contrib.admin import register as register
|
||||||
register as register,
|
from django.contrib.admin import site as site
|
||||||
site as site,
|
from django.contrib.gis.admin.options import GeoModelAdmin as GeoModelAdmin
|
||||||
)
|
from django.contrib.gis.admin.options import OSMGeoAdmin as OSMGeoAdmin
|
||||||
from django.contrib.gis.admin.options import GeoModelAdmin as GeoModelAdmin, OSMGeoAdmin as OSMGeoAdmin
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.admin import ModelAdmin as ModelAdmin
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.admin import ModelAdmin as ModelAdmin
|
||||||
|
|
||||||
spherical_mercator_srid: int
|
spherical_mercator_srid: int
|
||||||
|
|
||||||
class GeoModelAdmin(ModelAdmin):
|
class GeoModelAdmin(ModelAdmin):
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.forms.widgets import Textarea as Textarea
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.forms.widgets import Textarea as Textarea
|
||||||
|
|
||||||
geo_context: Any
|
geo_context: Any
|
||||||
logger: Any
|
logger: Any
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.apps import AppConfig as AppConfig
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.apps import AppConfig as AppConfig
|
||||||
|
|
||||||
class GISConfig(AppConfig):
|
class GISConfig(AppConfig):
|
||||||
name: str = ...
|
name: str = ...
|
||||||
verbose_name: Any = ...
|
verbose_name: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper
|
||||||
|
|
||||||
class DatabaseWrapper(MySQLDatabaseWrapper):
|
class DatabaseWrapper(MySQLDatabaseWrapper):
|
||||||
SchemaEditorClass: Any = ...
|
SchemaEditorClass: Any = ...
|
||||||
features_class: Any = ...
|
features_class: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.mysql.introspection import DatabaseIntrospection as DatabaseIntrospection
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.mysql.introspection import DatabaseIntrospection as DatabaseIntrospection
|
||||||
|
|
||||||
class MySQLIntrospection(DatabaseIntrospection):
|
class MySQLIntrospection(DatabaseIntrospection):
|
||||||
data_types_reverse: Any = ...
|
data_types_reverse: Any = ...
|
||||||
def get_geometry_type(self, table_name: Any, description: Any): ...
|
def get_geometry_type(self, table_name: Any, description: Any): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations as BaseSpatialOperations
|
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations as BaseSpatialOperations
|
||||||
from django.db.backends.mysql.operations import DatabaseOperations as DatabaseOperations
|
from django.db.backends.mysql.operations import DatabaseOperations as DatabaseOperations
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class MySQLOperations(BaseSpatialOperations, DatabaseOperations):
|
class MySQLOperations(BaseSpatialOperations, DatabaseOperations):
|
||||||
mysql: bool = ...
|
mysql: bool = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.mysql.schema import DatabaseSchemaEditor as DatabaseSchemaEditor
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.mysql.schema import DatabaseSchemaEditor as DatabaseSchemaEditor
|
||||||
|
|
||||||
logger: Any
|
logger: Any
|
||||||
|
|
||||||
class MySQLGISSchemaEditor(DatabaseSchemaEditor):
|
class MySQLGISSchemaEditor(DatabaseSchemaEditor):
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.db.backends.base.adapter import WKTAdapter
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.db.backends.base.adapter import WKTAdapter
|
||||||
|
|
||||||
class OracleSpatialAdapter(WKTAdapter):
|
class OracleSpatialAdapter(WKTAdapter):
|
||||||
input_size: Any = ...
|
input_size: Any = ...
|
||||||
wkt: Any = ...
|
wkt: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.oracle.base import DatabaseWrapper as OracleDatabaseWrapper
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.oracle.base import DatabaseWrapper as OracleDatabaseWrapper
|
||||||
|
|
||||||
class DatabaseWrapper(OracleDatabaseWrapper):
|
class DatabaseWrapper(OracleDatabaseWrapper):
|
||||||
SchemaEditorClass: Any = ...
|
SchemaEditorClass: Any = ...
|
||||||
features_class: Any = ...
|
features_class: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.oracle.introspection import DatabaseIntrospection as DatabaseIntrospection
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.oracle.introspection import DatabaseIntrospection as DatabaseIntrospection
|
||||||
|
|
||||||
class OracleIntrospection(DatabaseIntrospection):
|
class OracleIntrospection(DatabaseIntrospection):
|
||||||
def data_types_reverse(self): ...
|
def data_types_reverse(self): ...
|
||||||
def get_geometry_type(self, table_name: Any, description: Any): ...
|
def get_geometry_type(self, table_name: Any, description: Any): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.gis.db import models as models
|
from django.contrib.gis.db import models as models
|
||||||
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
|
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class OracleGeometryColumns(models.Model):
|
class OracleGeometryColumns(models.Model):
|
||||||
table_name: Any = ...
|
table_name: Any = ...
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations as BaseSpatialOperations
|
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations as BaseSpatialOperations
|
||||||
from django.contrib.gis.db.backends.utils import SpatialOperator as SpatialOperator
|
from django.contrib.gis.db.backends.utils import SpatialOperator as SpatialOperator
|
||||||
from django.db.backends.oracle.operations import DatabaseOperations as DatabaseOperations
|
from django.db.backends.oracle.operations import DatabaseOperations as DatabaseOperations
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
DEFAULT_TOLERANCE: str
|
DEFAULT_TOLERANCE: str
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.oracle.schema import DatabaseSchemaEditor
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.oracle.schema import DatabaseSchemaEditor
|
||||||
|
|
||||||
class OracleGISSchemaEditor(DatabaseSchemaEditor):
|
class OracleGISSchemaEditor(DatabaseSchemaEditor):
|
||||||
sql_add_geometry_metadata: str = ...
|
sql_add_geometry_metadata: str = ...
|
||||||
sql_add_spatial_index: str = ...
|
sql_add_spatial_index: str = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.postgresql.base import DatabaseWrapper as Psycopg2DatabaseWrapper
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.postgresql.base import DatabaseWrapper as Psycopg2DatabaseWrapper
|
||||||
|
|
||||||
class DatabaseWrapper(Psycopg2DatabaseWrapper):
|
class DatabaseWrapper(Psycopg2DatabaseWrapper):
|
||||||
SchemaEditorClass: Any = ...
|
SchemaEditorClass: Any = ...
|
||||||
features: Any = ...
|
features: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.postgresql.introspection import DatabaseIntrospection as DatabaseIntrospection
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.postgresql.introspection import DatabaseIntrospection as DatabaseIntrospection
|
||||||
|
|
||||||
class PostGISIntrospection(DatabaseIntrospection):
|
class PostGISIntrospection(DatabaseIntrospection):
|
||||||
postgis_oid_lookup: Any = ...
|
postgis_oid_lookup: Any = ...
|
||||||
ignored_tables: Any = ...
|
ignored_tables: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
|
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
|
||||||
from django.db import models as models
|
from django.db import models as models
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class PostGISGeometryColumns(models.Model):
|
class PostGISGeometryColumns(models.Model):
|
||||||
f_table_catalog: Any = ...
|
f_table_catalog: Any = ...
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
|
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
|
||||||
from django.contrib.gis.db.backends.utils import SpatialOperator
|
from django.contrib.gis.db.backends.utils import SpatialOperator
|
||||||
from django.db.backends.postgresql.operations import DatabaseOperations
|
from django.db.backends.postgresql.operations import DatabaseOperations
|
||||||
from django.db.models import Func
|
from django.db.models import Func
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
BILATERAL: str
|
BILATERAL: str
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.postgresql.schema import DatabaseSchemaEditor
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.postgresql.schema import DatabaseSchemaEditor
|
||||||
|
|
||||||
class PostGISSchemaEditor(DatabaseSchemaEditor):
|
class PostGISSchemaEditor(DatabaseSchemaEditor):
|
||||||
geom_index_type: str = ...
|
geom_index_type: str = ...
|
||||||
geom_index_ops_nd: str = ...
|
geom_index_ops_nd: str = ...
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
from django.contrib.gis.db.backends.base.adapter import WKTAdapter as WKTAdapter
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.db.backends.base.adapter import WKTAdapter as WKTAdapter
|
||||||
|
|
||||||
class SpatiaLiteAdapter(WKTAdapter):
|
class SpatiaLiteAdapter(WKTAdapter):
|
||||||
def __conform__(self, protocol: Any): ...
|
def __conform__(self, protocol: Any): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.sqlite3.base import DatabaseWrapper as SQLiteDatabaseWrapper
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.sqlite3.base import DatabaseWrapper as SQLiteDatabaseWrapper
|
||||||
|
|
||||||
class DatabaseWrapper(SQLiteDatabaseWrapper):
|
class DatabaseWrapper(SQLiteDatabaseWrapper):
|
||||||
SchemaEditorClass: Any = ...
|
SchemaEditorClass: Any = ...
|
||||||
client_class: Any = ...
|
client_class: Any = ...
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
from django.db.backends.sqlite3.introspection import (
|
|
||||||
DatabaseIntrospection as DatabaseIntrospection,
|
|
||||||
FlexibleFieldLookupDict as FlexibleFieldLookupDict,
|
|
||||||
)
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.sqlite3.introspection import DatabaseIntrospection as DatabaseIntrospection
|
||||||
|
from django.db.backends.sqlite3.introspection import FlexibleFieldLookupDict as FlexibleFieldLookupDict
|
||||||
|
|
||||||
class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
|
class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
|
||||||
base_data_types_reverse: Any = ...
|
base_data_types_reverse: Any = ...
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
|
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
|
||||||
from django.db import models as models
|
from django.db import models as models
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class SpatialiteGeometryColumns(models.Model):
|
class SpatialiteGeometryColumns(models.Model):
|
||||||
f_table_name: Any = ...
|
f_table_name: Any = ...
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
|
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
|
||||||
from django.contrib.gis.db.backends.utils import SpatialOperator as SpatialOperator
|
from django.contrib.gis.db.backends.utils import SpatialOperator as SpatialOperator
|
||||||
from django.db.backends.sqlite3.operations import DatabaseOperations
|
from django.db.backends.sqlite3.operations import DatabaseOperations
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class SpatialiteNullCheckOperator(SpatialOperator):
|
class SpatialiteNullCheckOperator(SpatialOperator):
|
||||||
def as_sql(self, connection: Any, lookup: Any, template_params: Any, sql_params: Any): ...
|
def as_sql(self, connection: Any, lookup: Any, template_params: Any, sql_params: Any): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.backends.sqlite3.schema import DatabaseSchemaEditor as DatabaseSchemaEditor
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.backends.sqlite3.schema import DatabaseSchemaEditor as DatabaseSchemaEditor
|
||||||
|
|
||||||
class SpatialiteSchemaEditor(DatabaseSchemaEditor):
|
class SpatialiteSchemaEditor(DatabaseSchemaEditor):
|
||||||
sql_add_geometry_column: str = ...
|
sql_add_geometry_column: str = ...
|
||||||
sql_add_spatial_index: str = ...
|
sql_add_spatial_index: str = ...
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
# noqa: F401
|
# noqa: F401
|
||||||
from django.db.models import *
|
|
||||||
from django.contrib.gis.db.models.aggregates import *
|
from django.contrib.gis.db.models.aggregates import *
|
||||||
from django.contrib.gis.db.models.fields import (
|
from django.contrib.gis.db.models.fields import GeometryCollectionField as GeometryCollectionField
|
||||||
GeometryCollectionField as GeometryCollectionField,
|
from django.contrib.gis.db.models.fields import GeometryField as GeometryField
|
||||||
GeometryField as GeometryField,
|
from django.contrib.gis.db.models.fields import LineStringField as LineStringField
|
||||||
LineStringField as LineStringField,
|
from django.contrib.gis.db.models.fields import MultiLineStringField as MultiLineStringField
|
||||||
MultiLineStringField as MultiLineStringField,
|
from django.contrib.gis.db.models.fields import MultiPointField as MultiPointField
|
||||||
MultiPointField as MultiPointField,
|
from django.contrib.gis.db.models.fields import MultiPolygonField as MultiPolygonField
|
||||||
MultiPolygonField as MultiPolygonField,
|
from django.contrib.gis.db.models.fields import PointField as PointField
|
||||||
PointField as PointField,
|
from django.contrib.gis.db.models.fields import PolygonField as PolygonField
|
||||||
PolygonField as PolygonField,
|
from django.contrib.gis.db.models.fields import RasterField as RasterField
|
||||||
RasterField as RasterField,
|
from django.db.models import *
|
||||||
)
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.models import Aggregate
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.db.models import Aggregate
|
||||||
|
|
||||||
class GeoAggregate(Aggregate):
|
class GeoAggregate(Aggregate):
|
||||||
function: Any = ...
|
function: Any = ...
|
||||||
is_extent: bool = ...
|
is_extent: bool = ...
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from typing import Any, Iterable, NamedTuple, Optional, TypeVar, Union, Tuple
|
from typing import Any, Iterable, NamedTuple, Optional, Tuple, TypeVar, Union
|
||||||
|
|
||||||
from django.db.models.fields import Field, _ErrorMessagesToOverride, _FieldChoices, _ValidatorCallable
|
from django.db.models.fields import Field, _ErrorMessagesToOverride, _FieldChoices, _ValidatorCallable
|
||||||
|
|
||||||
# __set__ value type
|
# __set__ value type
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
from django.db.models import Func, Transform as StandardTransform
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.db.models import Func
|
||||||
|
from django.db.models import Transform as StandardTransform
|
||||||
|
|
||||||
NUMERIC_TYPES: Any
|
NUMERIC_TYPES: Any
|
||||||
|
|
||||||
class GeoFuncMixin:
|
class GeoFuncMixin:
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.models import Lookup, Transform
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db.models import Lookup, Transform
|
||||||
|
|
||||||
class RasterBandTransform(Transform): ...
|
class RasterBandTransform(Transform): ...
|
||||||
|
|
||||||
class GISLookup(Lookup):
|
class GISLookup(Lookup):
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db.models.query_utils import DeferredAttribute
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.db.models.query_utils import DeferredAttribute
|
||||||
|
|
||||||
class SpatialProxy(DeferredAttribute):
|
class SpatialProxy(DeferredAttribute):
|
||||||
def __init__(self, klass: Any, field: Any, load_func: Optional[Any] = ...) -> None: ...
|
def __init__(self, klass: Any, field: Any, load_func: Optional[Any] = ...) -> None: ...
|
||||||
def __get__(self, instance: Any, cls: Optional[Any] = ...): ...
|
def __get__(self, instance: Any, cls: Optional[Any] = ...): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.db import models as models
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.db import models as models
|
||||||
|
|
||||||
class AreaField(models.FloatField):
|
class AreaField(models.FloatField):
|
||||||
geo_field: Any = ...
|
geo_field: Any = ...
|
||||||
def __init__(self, geo_field: Any) -> None: ...
|
def __init__(self, geo_field: Any) -> None: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from django.contrib.syndication.views import Feed as BaseFeed
|
from django.contrib.syndication.views import Feed as BaseFeed
|
||||||
from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed
|
from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class GeoFeedMixin:
|
class GeoFeedMixin:
|
||||||
def georss_coords(self, coords: Any): ...
|
def georss_coords(self, coords: Any): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django import forms as forms
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django import forms as forms
|
||||||
|
|
||||||
class GeometryField(forms.Field):
|
class GeometryField(forms.Field):
|
||||||
widget: Any = ...
|
widget: Any = ...
|
||||||
geom_type: str = ...
|
geom_type: str = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.forms.widgets import Widget as Widget
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.forms.widgets import Widget as Widget
|
||||||
|
|
||||||
logger: Any
|
logger: Any
|
||||||
|
|
||||||
class BaseGeometryWidget(Widget):
|
class BaseGeometryWidget(Widget):
|
||||||
|
|||||||
@@ -1,15 +1,9 @@
|
|||||||
from django.contrib.gis.gdal.error import (
|
from django.contrib.gis.gdal.error import GDALException as GDALException
|
||||||
GDALException as GDALException,
|
from django.contrib.gis.gdal.error import SRSException as SRSException
|
||||||
SRSException as SRSException,
|
from django.contrib.gis.gdal.error import check_err as check_err
|
||||||
check_err as check_err,
|
from django.contrib.gis.gdal.libgdal import GDAL_VERSION as GDAL_VERSION
|
||||||
)
|
from django.contrib.gis.gdal.libgdal import gdal_full_version as gdal_full_version
|
||||||
from django.contrib.gis.gdal.libgdal import (
|
from django.contrib.gis.gdal.libgdal import gdal_version as gdal_version
|
||||||
GDAL_VERSION as GDAL_VERSION,
|
from django.contrib.gis.gdal.srs import AxisOrder as AxisOrder
|
||||||
gdal_full_version as gdal_full_version,
|
from django.contrib.gis.gdal.srs import CoordTransform as CoordTransform
|
||||||
gdal_version as gdal_version,
|
from django.contrib.gis.gdal.srs import SpatialReference as SpatialReference
|
||||||
)
|
|
||||||
from django.contrib.gis.gdal.srs import (
|
|
||||||
AxisOrder as AxisOrder,
|
|
||||||
CoordTransform as CoordTransform,
|
|
||||||
SpatialReference as SpatialReference,
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
from django.contrib.gis.ptr import CPointerBase as CPointerBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.ptr import CPointerBase as CPointerBase
|
||||||
|
|
||||||
class GDALBase(CPointerBase):
|
class GDALBase(CPointerBase):
|
||||||
null_ptr_exception_class: Any = ...
|
null_ptr_exception_class: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class DataSource(GDALBase):
|
class DataSource(GDALBase):
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
encoding: Any = ...
|
encoding: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class Driver(GDALBase):
|
class Driver(GDALBase):
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
def __init__(self, dr_input: Any) -> None: ...
|
def __init__(self, dr_input: Any) -> None: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class Feature(GDALBase):
|
class Feature(GDALBase):
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class Field(GDALBase):
|
class Field(GDALBase):
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
__class__: Any = ...
|
__class__: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class OGRGeometry(GDALBase):
|
class OGRGeometry(GDALBase):
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class Layer(GDALBase):
|
class Layer(GDALBase):
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
def __init__(self, layer_ptr: Any, ds: Any) -> None: ...
|
def __init__(self, layer_ptr: Any, ds: Any) -> None: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.raster.base import GDALRasterBase as GDALRasterBase
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.raster.base import GDALRasterBase as GDALRasterBase
|
||||||
|
|
||||||
class GDALBand(GDALRasterBase):
|
class GDALBand(GDALRasterBase):
|
||||||
source: Any = ...
|
source: Any = ...
|
||||||
def __init__(self, source: Any, index: Any) -> None: ...
|
def __init__(self, source: Any, index: Any) -> None: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class GDALRasterBase(GDALBase):
|
class GDALRasterBase(GDALBase):
|
||||||
@property
|
@property
|
||||||
def metadata(self): ...
|
def metadata(self): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.gdal.raster.base import GDALRasterBase as GDALRasterBase
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.raster.base import GDALRasterBase as GDALRasterBase
|
||||||
|
|
||||||
class TransformPoint(list):
|
class TransformPoint(list):
|
||||||
indices: Any = ...
|
indices: Any = ...
|
||||||
def __init__(self, raster: Any, prop: Any) -> None: ...
|
def __init__(self, raster: Any, prop: Any) -> None: ...
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|
||||||
from enum import IntEnum
|
from enum import IntEnum
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
||||||
|
|
||||||
class AxisOrder(IntEnum):
|
class AxisOrder(IntEnum):
|
||||||
TRADITIONAL: int = ...
|
TRADITIONAL: int = ...
|
||||||
AUTHORITY: int = ...
|
AUTHORITY: int = ...
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
from .base import GeoIP2 as GeoIP2, GeoIP2Exception as GeoIP2Exception
|
from .base import GeoIP2 as GeoIP2
|
||||||
|
from .base import GeoIP2Exception as GeoIP2Exception
|
||||||
|
|
||||||
HAS_GEOIP2: bool
|
HAS_GEOIP2: bool
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
from .collections import (
|
from .collections import GeometryCollection as GeometryCollection
|
||||||
GeometryCollection as GeometryCollection,
|
from .collections import MultiLineString as MultiLineString
|
||||||
MultiLineString as MultiLineString,
|
from .collections import MultiPoint as MultiPoint
|
||||||
MultiPoint as MultiPoint,
|
from .collections import MultiPolygon as MultiPolygon
|
||||||
MultiPolygon as MultiPolygon,
|
from .factory import fromfile as fromfile
|
||||||
)
|
from .factory import fromstr as fromstr
|
||||||
from .factory import fromfile as fromfile, fromstr as fromstr
|
from .geometry import GEOSGeometry as GEOSGeometry
|
||||||
from .geometry import GEOSGeometry as GEOSGeometry, hex_regex as hex_regex, wkt_regex as wkt_regex
|
from .geometry import hex_regex as hex_regex
|
||||||
from .io import WKBReader as WKBReader, WKBWriter as WKBWriter, WKTReader as WKTReader, WKTWriter as WKTWriter
|
from .geometry import wkt_regex as wkt_regex
|
||||||
from .linestring import LineString as LineString, LinearRing as LinearRing
|
from .io import WKBReader as WKBReader
|
||||||
|
from .io import WKBWriter as WKBWriter
|
||||||
|
from .io import WKTReader as WKTReader
|
||||||
|
from .io import WKTWriter as WKTWriter
|
||||||
|
from .linestring import LinearRing as LinearRing
|
||||||
|
from .linestring import LineString as LineString
|
||||||
from .point import Point as Point
|
from .point import Point as Point
|
||||||
from .polygon import Polygon as Polygon
|
from .polygon import Polygon as Polygon
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
from django.contrib.gis.ptr import CPointerBase as CPointerBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.ptr import CPointerBase as CPointerBase
|
||||||
|
|
||||||
class GEOSBase(CPointerBase):
|
class GEOSBase(CPointerBase):
|
||||||
null_ptr_exception_class: Any = ...
|
null_ptr_exception_class: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry, LinearGeometryMixin as LinearGeometryMixin
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
|
||||||
|
from django.contrib.gis.geos.geometry import LinearGeometryMixin as LinearGeometryMixin
|
||||||
|
|
||||||
class GeometryCollection(GEOSGeometry):
|
class GeometryCollection(GEOSGeometry):
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
||||||
|
|
||||||
class GEOSCoordSeq(GEOSBase):
|
class GEOSCoordSeq(GEOSBase):
|
||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
def __init__(self, ptr: Any, z: bool = ...) -> None: ...
|
def __init__(self, ptr: Any, z: bool = ...) -> None: ...
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
from django.contrib.gis.geometry import ( # noqa: F401
|
from typing import Any, Optional
|
||||||
hex_regex as hex_regex,
|
|
||||||
json_regex as json_regex,
|
from django.contrib.gis.geometry import hex_regex as hex_regex # noqa: F401
|
||||||
wkt_regex as wkt_regex,
|
from django.contrib.gis.geometry import json_regex as json_regex
|
||||||
)
|
from django.contrib.gis.geometry import wkt_regex as wkt_regex
|
||||||
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
||||||
from django.contrib.gis.geos.mutable_list import ListMixin as ListMixin
|
from django.contrib.gis.geos.mutable_list import ListMixin as ListMixin
|
||||||
from typing import Any, Optional
|
|
||||||
|
|
||||||
class GEOSGeometryBase(GEOSBase):
|
class GEOSGeometryBase(GEOSBase):
|
||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
from django.contrib.gis.geos.prototypes.io import ( # noqa: F401
|
|
||||||
WKBWriter as WKBWriter,
|
|
||||||
WKTWriter as WKTWriter,
|
|
||||||
_WKBReader,
|
|
||||||
_WKTReader,
|
|
||||||
)
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.prototypes.io import WKBWriter as WKBWriter # noqa: F401
|
||||||
|
from django.contrib.gis.geos.prototypes.io import WKTWriter as WKTWriter
|
||||||
|
from django.contrib.gis.geos.prototypes.io import _WKBReader, _WKTReader
|
||||||
|
|
||||||
class WKBReader(_WKBReader):
|
class WKBReader(_WKBReader):
|
||||||
def read(self, wkb: Any): ...
|
def read(self, wkb: Any): ...
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry, LinearGeometryMixin as LinearGeometryMixin
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
|
||||||
|
from django.contrib.gis.geos.geometry import LinearGeometryMixin as LinearGeometryMixin
|
||||||
|
|
||||||
class LineString(LinearGeometryMixin, GEOSGeometry):
|
class LineString(LinearGeometryMixin, GEOSGeometry):
|
||||||
has_cs: bool = ...
|
has_cs: bool = ...
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
|
||||||
|
|
||||||
class Point(GEOSGeometry):
|
class Point(GEOSGeometry):
|
||||||
has_cs: bool = ...
|
has_cs: bool = ...
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
|
||||||
|
|
||||||
class Polygon(GEOSGeometry):
|
class Polygon(GEOSGeometry):
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from .base import GEOSBase as GEOSBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from .base import GEOSBase as GEOSBase
|
||||||
|
|
||||||
class PreparedGeometry(GEOSBase):
|
class PreparedGeometry(GEOSBase):
|
||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
|
|||||||
@@ -1,57 +1,51 @@
|
|||||||
from django.contrib.gis.geos.prototypes.coordseq import (
|
from django.contrib.gis.geos.prototypes.coordseq import create_cs as create_cs
|
||||||
create_cs as create_cs,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_clone as cs_clone
|
||||||
cs_clone as cs_clone,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_getdims as cs_getdims
|
||||||
cs_getdims as cs_getdims,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_getordinate as cs_getordinate
|
||||||
cs_getordinate as cs_getordinate,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_getsize as cs_getsize
|
||||||
cs_getsize as cs_getsize,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_getx as cs_getx
|
||||||
cs_getx as cs_getx,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_gety as cs_gety
|
||||||
cs_gety as cs_gety,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_getz as cs_getz
|
||||||
cs_getz as cs_getz,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_is_ccw as cs_is_ccw
|
||||||
cs_is_ccw as cs_is_ccw,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_setordinate as cs_setordinate
|
||||||
cs_setordinate as cs_setordinate,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_setx as cs_setx
|
||||||
cs_setx as cs_setx,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_sety as cs_sety
|
||||||
cs_sety as cs_sety,
|
from django.contrib.gis.geos.prototypes.coordseq import cs_setz as cs_setz
|
||||||
cs_setz as cs_setz,
|
from django.contrib.gis.geos.prototypes.coordseq import get_cs as get_cs
|
||||||
get_cs as get_cs,
|
from django.contrib.gis.geos.prototypes.geom import create_collection as create_collection
|
||||||
)
|
from django.contrib.gis.geos.prototypes.geom import create_empty_polygon as create_empty_polygon
|
||||||
from django.contrib.gis.geos.prototypes.geom import (
|
from django.contrib.gis.geos.prototypes.geom import create_linearring as create_linearring
|
||||||
create_collection as create_collection,
|
from django.contrib.gis.geos.prototypes.geom import create_linestring as create_linestring
|
||||||
create_empty_polygon as create_empty_polygon,
|
from django.contrib.gis.geos.prototypes.geom import create_point as create_point
|
||||||
create_linearring as create_linearring,
|
from django.contrib.gis.geos.prototypes.geom import create_polygon as create_polygon
|
||||||
create_linestring as create_linestring,
|
from django.contrib.gis.geos.prototypes.geom import destroy_geom as destroy_geom
|
||||||
create_point as create_point,
|
from django.contrib.gis.geos.prototypes.geom import geom_clone as geom_clone
|
||||||
create_polygon as create_polygon,
|
from django.contrib.gis.geos.prototypes.geom import geos_get_srid as geos_get_srid
|
||||||
destroy_geom as destroy_geom,
|
from django.contrib.gis.geos.prototypes.geom import geos_normalize as geos_normalize
|
||||||
geom_clone as geom_clone,
|
from django.contrib.gis.geos.prototypes.geom import geos_set_srid as geos_set_srid
|
||||||
geos_get_srid as geos_get_srid,
|
from django.contrib.gis.geos.prototypes.geom import geos_type as geos_type
|
||||||
geos_normalize as geos_normalize,
|
from django.contrib.gis.geos.prototypes.geom import geos_typeid as geos_typeid
|
||||||
geos_set_srid as geos_set_srid,
|
from django.contrib.gis.geos.prototypes.geom import get_dims as get_dims
|
||||||
geos_type as geos_type,
|
from django.contrib.gis.geos.prototypes.geom import get_extring as get_extring
|
||||||
geos_typeid as geos_typeid,
|
from django.contrib.gis.geos.prototypes.geom import get_geomn as get_geomn
|
||||||
get_dims as get_dims,
|
from django.contrib.gis.geos.prototypes.geom import get_intring as get_intring
|
||||||
get_extring as get_extring,
|
from django.contrib.gis.geos.prototypes.geom import get_nrings as get_nrings
|
||||||
get_geomn as get_geomn,
|
from django.contrib.gis.geos.prototypes.geom import get_num_coords as get_num_coords
|
||||||
get_intring as get_intring,
|
from django.contrib.gis.geos.prototypes.geom import get_num_geoms as get_num_geoms
|
||||||
get_nrings as get_nrings,
|
from django.contrib.gis.geos.prototypes.predicates import geos_contains as geos_contains
|
||||||
get_num_coords as get_num_coords,
|
from django.contrib.gis.geos.prototypes.predicates import geos_covers as geos_covers
|
||||||
get_num_geoms as get_num_geoms,
|
from django.contrib.gis.geos.prototypes.predicates import geos_crosses as geos_crosses
|
||||||
)
|
from django.contrib.gis.geos.prototypes.predicates import geos_disjoint as geos_disjoint
|
||||||
from django.contrib.gis.geos.prototypes.predicates import (
|
from django.contrib.gis.geos.prototypes.predicates import geos_equals as geos_equals
|
||||||
geos_contains as geos_contains,
|
from django.contrib.gis.geos.prototypes.predicates import geos_equalsexact as geos_equalsexact
|
||||||
geos_covers as geos_covers,
|
from django.contrib.gis.geos.prototypes.predicates import geos_hasz as geos_hasz
|
||||||
geos_crosses as geos_crosses,
|
from django.contrib.gis.geos.prototypes.predicates import geos_intersects as geos_intersects
|
||||||
geos_disjoint as geos_disjoint,
|
from django.contrib.gis.geos.prototypes.predicates import geos_isclosed as geos_isclosed
|
||||||
geos_equals as geos_equals,
|
from django.contrib.gis.geos.prototypes.predicates import geos_isempty as geos_isempty
|
||||||
geos_equalsexact as geos_equalsexact,
|
from django.contrib.gis.geos.prototypes.predicates import geos_isring as geos_isring
|
||||||
geos_hasz as geos_hasz,
|
from django.contrib.gis.geos.prototypes.predicates import geos_issimple as geos_issimple
|
||||||
geos_intersects as geos_intersects,
|
from django.contrib.gis.geos.prototypes.predicates import geos_isvalid as geos_isvalid
|
||||||
geos_isclosed as geos_isclosed,
|
from django.contrib.gis.geos.prototypes.predicates import geos_overlaps as geos_overlaps
|
||||||
geos_isempty as geos_isempty,
|
from django.contrib.gis.geos.prototypes.predicates import geos_relatepattern as geos_relatepattern
|
||||||
geos_isring as geos_isring,
|
from django.contrib.gis.geos.prototypes.predicates import geos_touches as geos_touches
|
||||||
geos_issimple as geos_issimple,
|
from django.contrib.gis.geos.prototypes.predicates import geos_within as geos_within
|
||||||
geos_isvalid as geos_isvalid,
|
|
||||||
geos_overlaps as geos_overlaps,
|
|
||||||
geos_relatepattern as geos_relatepattern,
|
|
||||||
geos_touches as geos_touches,
|
|
||||||
geos_within as geos_within,
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
||||||
|
|
||||||
def check_cs_op(result: Any, func: Any, cargs: Any): ...
|
def check_cs_op(result: Any, func: Any, cargs: Any): ...
|
||||||
def check_cs_get(result: Any, func: Any, cargs: Any): ...
|
def check_cs_get(result: Any, func: Any, cargs: Any): ...
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
from ctypes import c_char_p
|
from ctypes import c_char_p
|
||||||
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
||||||
|
|
||||||
c_uchar_p: Any
|
c_uchar_p: Any
|
||||||
|
|
||||||
class geos_char_p(c_char_p): ...
|
class geos_char_p(c_char_p): ...
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import threading
|
import threading
|
||||||
from ctypes import Structure
|
from ctypes import Structure
|
||||||
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
|
||||||
from django.contrib.gis.geos.libgeos import (
|
|
||||||
GEOSFuncFactory as GEOSFuncFactory,
|
|
||||||
)
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
||||||
|
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
||||||
|
|
||||||
class WKTReader_st(Structure): ...
|
class WKTReader_st(Structure): ...
|
||||||
class WKTWriter_st(Structure): ...
|
class WKTWriter_st(Structure): ...
|
||||||
class WKBReader_st(Structure): ...
|
class WKBReader_st(Structure): ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.geos.libgeos import GEOSFuncFactory
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.libgeos import GEOSFuncFactory
|
||||||
|
|
||||||
class DblFromGeom(GEOSFuncFactory):
|
class DblFromGeom(GEOSFuncFactory):
|
||||||
restype: Any = ...
|
restype: Any = ...
|
||||||
errcheck: Any = ...
|
errcheck: Any = ...
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
||||||
|
|
||||||
class UnaryPredicate(GEOSFuncFactory):
|
class UnaryPredicate(GEOSFuncFactory):
|
||||||
argtypes: Any = ...
|
argtypes: Any = ...
|
||||||
restype: Any = ...
|
restype: Any = ...
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
from django.contrib.gis.geos.libgeos import (
|
|
||||||
GEOSFuncFactory as GEOSFuncFactory,
|
|
||||||
)
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
||||||
|
|
||||||
geos_prepare: Any
|
geos_prepare: Any
|
||||||
prepared_destroy: Any
|
prepared_destroy: Any
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import threading
|
import threading
|
||||||
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
|
||||||
|
|
||||||
class GEOSContextHandle(GEOSBase):
|
class GEOSContextHandle(GEOSBase):
|
||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user