forked from typeddjango/django-stubs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better linting config (typeddjango#664)
* Better linting config * Applies isort on django-stubs, only style changes * Fixes black and isort compat
- Loading branch information
Showing
288 changed files
with
1,155 additions
and
1,198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from typing import Any, NamedTuple | ||
|
||
from .utils.version import get_version as get_version | ||
|
||
VERSION: Any | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from .config import AppConfig as AppConfig | ||
|
||
from .registry import apps as apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from typing import Dict, Any | ||
from typing import Any, Dict | ||
|
||
LANG_INFO: Dict[str, Any] = ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 .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: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from django.apps import AppConfig as AppConfig | ||
from typing import Any | ||
|
||
from django.apps import AppConfig as AppConfig | ||
|
||
class AdminDocsConfig(AppConfig): | ||
name: str = ... | ||
verbose_name: Any = ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
from typing import Any, List, Optional, Sequence | ||
|
||
from django.core.checks.messages import CheckMessage | ||
|
||
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_models_permissions(app_configs: Optional[Sequence[AppConfig]] = ..., **kwargs: Any) -> List[CheckMessage]: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.