Skip to content

Commit

Permalink
Fix type hint of URLPattern.default_args (#1895)
Browse files Browse the repository at this point in the history
* Fix type hint of `URLPattern.default_args`

* Use `dict[str, Any]`
  • Loading branch information
Viicos committed Dec 30, 2023
1 parent 8118c23 commit 01d26d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/urls/resolvers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ class LocalePrefixPattern:
class URLPattern:
pattern: _Pattern
callback: Callable
default_args: dict[str, str] | None
default_args: dict[str, Any]
name: str | None
def __init__(
self,
pattern: _Pattern,
callback: Callable,
default_args: dict[str, str] | None = ...,
default_args: dict[str, Any] | None = ...,
name: str | None = ...,
) -> None: ...
def check(self) -> list[CheckMessage]: ...
Expand Down

0 comments on commit 01d26d0

Please sign in to comment.