Skip to content
Snippets Groups Projects
Commit 2cc8d626 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

mailmap: Fix mypy errors with django-stubs 5.0.2

parent f06cc7ed
No related branches found
No related tags found
No related merge requests found
beautifulsoup4
decorator # dependency of swh.core[http]
djangorestframework-stubs
django-stubs != 4.2.2
django-stubs >= 5.0.2
django-test-migrations
hypothesis
pytest >= 8.1
......
# Copyright (C) 2022 The Software Heritage developers
# Copyright (C) 2022-2024 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from __future__ import annotations
import psycopg2
import psycopg2.extensions
from psycopg2.extras import execute_values
......@@ -46,7 +48,7 @@ class Command(BaseCommand):
def disable_mailmaps(
self,
storage_db: psycopg2.extensions.connection,
mailmaps: "QuerySet[UserMailmap]",
mailmaps: QuerySet[UserMailmap, UserMailmap],
):
"""Return the SQL to disable a set of mailmaps"""
......@@ -59,7 +61,7 @@ class Command(BaseCommand):
def refresh_mailmaps(
self,
storage_db: psycopg2.extensions.connection,
mailmaps: "QuerySet[UserMailmap]",
mailmaps: QuerySet[UserMailmap, UserMailmap],
):
execute_values(
storage_db.cursor(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment