From d7d7e6c66e0469f51325644424db70aaf8af236a Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 19 May 2019 18:59:00 +0200 Subject: [PATCH] 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 --- django-stubs/contrib/staticfiles/urls.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/contrib/staticfiles/urls.pyi b/django-stubs/contrib/staticfiles/urls.pyi index 3955657..cbfdac1 100644 --- a/django-stubs/contrib/staticfiles/urls.pyi +++ b/django-stubs/contrib/staticfiles/urls.pyi @@ -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]: ...