From afadaa3cf3649eeb0edd9a59c125d3851823bdd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Fri, 23 Feb 2024 14:46:19 +0100 Subject: [PATCH] Fix warnings --- feeds/sitemaps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feeds/sitemaps.py b/feeds/sitemaps.py index f8c7d4d..f290878 100644 --- a/feeds/sitemaps.py +++ b/feeds/sitemaps.py @@ -14,5 +14,6 @@ class StaticViewSitemap(Sitemap): """Return all the items in the sitemap.""" return ["feeds:index", "feeds:feeds", "feeds:domains"] - def location(self, item) -> str: + def location(self, item: str) -> str: + """Return the location of the item.""" return reverse(item)