mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 12:14:28 +08:00
Fix type of prefix arg in staticfiles_urlpatterns (#74)
Using a *type* of None for the prefix keyword argument is not going to typecheck very well, so it might be a typo here because the default value (rather than the type) is None. Signed-off-by: aszlig <aszlig@nix.build>
This commit is contained in:
@@ -4,4 +4,4 @@ from django.urls.resolvers import URLPattern
|
||||
|
||||
urlpatterns: Any
|
||||
|
||||
def staticfiles_urlpatterns(prefix: None = ...) -> List[URLPattern]: ...
|
||||
def staticfiles_urlpatterns(prefix: Optional[str] = ...) -> List[URLPattern]: ...
|
||||
|
||||
Reference in New Issue
Block a user