forked from typeddjango/django-stubs
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use PEP-585 standard generic collections (#184)
Ran ruff with "UP006" rule autofixes for PEP-585 upgrades and some other relevant rules. Ruff runs now as part of the linters to make sure that the library stays up-to-date. When running `./s/lint` locally, it autofixes the errors inplace. When run in CI, it just prints them to the terminal. This is similar to how black and isort are invoked.
- Loading branch information
Showing
295 changed files
with
2,305 additions
and
2,576 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from typing import Any, Dict | ||
from typing import Any | ||
|
||
LANG_INFO: Dict[str, Any] = ... | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
from typing import Any, Callable, List, Tuple | ||
from collections.abc import Callable | ||
from typing import Any | ||
|
||
from django.urls.resolvers import URLPattern | ||
|
||
def i18n_patterns( | ||
*urls: Any, prefix_default_language: bool = ... | ||
) -> List[List[URLPattern]]: ... | ||
def is_language_prefix_patterns_used(urlconf: str) -> Tuple[bool, bool]: ... | ||
) -> list[list[URLPattern]]: ... | ||
def is_language_prefix_patterns_used(urlconf: str) -> tuple[bool, bool]: ... | ||
|
||
urlpatterns: List[Callable[..., Any]] | ||
urlpatterns: list[Callable[..., 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,7 +1,8 @@ | ||
from typing import Any, Callable, List | ||
from collections.abc import Callable | ||
from typing import Any | ||
|
||
from django.urls.resolvers import URLPattern | ||
|
||
def static( | ||
prefix: str, view: Callable[..., Any] = ..., **kwargs: Any | ||
) -> List[URLPattern]: ... | ||
) -> list[URLPattern]: ... |
Oops, something went wrong.