-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various annotation improvements (#258)
- Loading branch information
Showing
27 changed files
with
158 additions
and
174 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
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,8 @@ | ||
from typing import Any, List | ||
from typing import Any, List, Iterable, Optional | ||
|
||
from django.core.checks.messages import CheckMessage | ||
|
||
def check_user_model(app_configs: None = ..., **kwargs: Any) -> List[CheckMessage]: ... | ||
def check_models_permissions(app_configs: None = ..., **kwargs: Any) -> List[Any]: ... | ||
from django.apps.config import AppConfig | ||
|
||
def check_user_model(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[CheckMessage]: ... | ||
def check_models_permissions(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[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,4 +1,6 @@ | ||
from typing import Any, List | ||
from typing import Any, List, Iterable, Optional | ||
|
||
def check_generic_foreign_keys(app_configs: None = ..., **kwargs: Any) -> List[Any]: ... | ||
def check_model_name_lengths(app_configs: None = ..., **kwargs: Any) -> List[Any]: ... | ||
from django.apps.config import AppConfig | ||
|
||
def check_generic_foreign_keys(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[Any]: ... | ||
def check_model_name_lengths(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from typing import Any, List | ||
from typing import Any, List, Iterable, Optional | ||
|
||
from django.core.checks.messages import Error | ||
|
||
def check_finders(app_configs: None = ..., **kwargs: Any) -> List[Error]: ... | ||
from django.apps.config import AppConfig | ||
|
||
def check_finders(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[Error]: ... |
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,7 +1,9 @@ | ||
from typing import Any, List | ||
from typing import Any, List, Iterable, Optional | ||
|
||
from django.core.checks.messages import Error | ||
|
||
from django.apps.config import AppConfig | ||
|
||
E001: Any | ||
|
||
def check_default_cache_is_configured(app_configs: None, **kwargs: Any) -> List[Error]: ... | ||
def check_default_cache_is_configured(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ... |
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,8 @@ | ||
from typing import Any, List | ||
from typing import Any, List, Iterable, Optional | ||
|
||
from django.core.checks.messages import Warning | ||
|
||
def check_all_models(app_configs: None = ..., **kwargs: Any) -> List[Warning]: ... | ||
def check_lazy_references(app_configs: None = ..., **kwargs: Any) -> List[Any]: ... | ||
from django.apps.config import AppConfig | ||
|
||
def check_all_models(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[Warning]: ... | ||
def check_lazy_references(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
from typing import Any, List | ||
from typing import Any, List, Iterable, Optional | ||
|
||
from django.core.checks.messages import Warning | ||
|
||
from django.apps.config import AppConfig | ||
|
||
W003: Any | ||
W016: Any | ||
|
||
def check_csrf_middleware(app_configs: None, **kwargs: Any) -> List[Warning]: ... | ||
def check_csrf_cookie_secure(app_configs: None, **kwargs: Any) -> List[Warning]: ... | ||
def check_csrf_middleware(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ... | ||
def check_csrf_cookie_secure(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ... |
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,9 +1,11 @@ | ||
from typing import Any, List | ||
from typing import Any, List, Iterable, Optional | ||
|
||
from django.core.checks.messages import Error | ||
|
||
from django.apps.config import AppConfig | ||
|
||
E001: Any | ||
E002: Any | ||
|
||
def check_setting_app_dirs_loaders(app_configs: None, **kwargs: Any) -> List[Error]: ... | ||
def check_string_if_invalid_is_string(app_configs: None, **kwargs: Any) -> List[Error]: ... | ||
def check_setting_app_dirs_loaders(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ... | ||
def check_string_if_invalid_is_string(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ... |
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,11 +1,13 @@ | ||
from typing import Any, Callable, List, Tuple, Union | ||
from typing import Any, Callable, List, Tuple, Union, Iterable, Optional | ||
|
||
from django.core.checks.messages import CheckMessage, Error, Warning | ||
from django.urls.resolvers import URLPattern, URLResolver | ||
|
||
def check_url_config(app_configs: None, **kwargs: Any) -> List[CheckMessage]: ... | ||
from django.apps.config import AppConfig | ||
|
||
def check_url_config(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[CheckMessage]: ... | ||
def check_resolver(resolver: Union[Tuple[str, Callable], URLPattern, URLResolver]) -> List[CheckMessage]: ... | ||
def check_url_namespaces_unique(app_configs: None, **kwargs: Any) -> List[Warning]: ... | ||
def check_url_namespaces_unique(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ... | ||
def get_warning_for_invalid_pattern(pattern: Any) -> List[Error]: ... | ||
def check_url_settings(app_configs: None, **kwargs: Any) -> List[Error]: ... | ||
def check_url_settings(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ... | ||
def E006(name: str) -> Error: ... |
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.