Skip to content

Commit 01d26d0

Browse files
authored
Fix type hint of URLPattern.default_args (#1895)
* Fix type hint of `URLPattern.default_args` * Use `dict[str, Any]`
1 parent 8118c23 commit 01d26d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/urls/resolvers.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ class LocalePrefixPattern:
8686
class URLPattern:
8787
pattern: _Pattern
8888
callback: Callable
89-
default_args: dict[str, str] | None
89+
default_args: dict[str, Any]
9090
name: str | None
9191
def __init__(
9292
self,
9393
pattern: _Pattern,
9494
callback: Callable,
95-
default_args: dict[str, str] | None = ...,
95+
default_args: dict[str, Any] | None = ...,
9696
name: str | None = ...,
9797
) -> None: ...
9898
def check(self) -> list[CheckMessage]: ...

0 commit comments

Comments
 (0)