Skip to content

Commit f318d34

Browse files
fix type hint for url
1 parent 85433f8 commit f318d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_simple_nav/nav.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_template_name(self) -> str:
6767
@dataclass(frozen=True)
6868
class NavItem:
6969
title: str
70-
url: str | Callable[..., str] | None = None
70+
url: str | Callable[..., str] | Promise | None = None
7171
permissions: list[str | Callable[[HttpRequest], bool]] = field(default_factory=list)
7272
extra_context: dict[str, object] = field(default_factory=dict)
7373

0 commit comments

Comments
 (0)