Skip to content

Commit 0c5f265

Browse files
django.urls.resolve can also take _StrPromise (typeddjango#2826) (#40)
Co-authored-by: Anthony Sottile <[email protected]>
1 parent abcc06c commit 0c5f265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/urls/base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _QueryType: TypeAlias = (
1111
Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[tuple[Any, Any]] | Sequence[tuple[Any, Sequence[Any]]]
1212
)
1313

14-
def resolve(path: str, urlconf: str | None = ...) -> ResolverMatch: ...
14+
def resolve(path: str | _StrPromise, urlconf: str | None = ...) -> ResolverMatch: ...
1515

1616
# NOTE: make sure `reverse` and `reverse_lazy` objects are in sync:
1717
def reverse(

0 commit comments

Comments
 (0)