From f24ef41518579886676a9f5ccf9c71dc9667d5d5 Mon Sep 17 00:00:00 2001 From: Daniel Brown Date: Wed, 17 Aug 2022 20:23:07 +0200 Subject: [PATCH] fix type hint for GenericSitemap(info_dict) --- django-stubs/contrib/sitemaps/__init__.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/contrib/sitemaps/__init__.pyi b/django-stubs/contrib/sitemaps/__init__.pyi index 13fb9af10..f14ae2311 100644 --- a/django-stubs/contrib/sitemaps/__init__.pyi +++ b/django-stubs/contrib/sitemaps/__init__.pyi @@ -1,5 +1,5 @@ from datetime import datetime -from typing import Any, Dict, List, Optional, Sequence, Union +from typing import Any, Dict, List, Mapping, Optional, Sequence, Union from django.contrib.sites.models import Site from django.contrib.sites.requests import RequestSite @@ -36,7 +36,7 @@ class GenericSitemap(Sitemap): protocol: Optional[str] = ... def __init__( self, - info_dict: Dict[str, Union[datetime, QuerySet[Model], str]], + info_dict: Mapping[str, Union[datetime, QuerySet[Model], str]], priority: Optional[float] = ..., changefreq: Optional[str] = ..., protocol: Optional[str] = ...,