From d9c7331fa264ebbd7e226357aba5a63d5a31ebbf Mon Sep 17 00:00:00 2001 From: Vjeran Grozdanic Date: Sun, 12 Jan 2025 19:40:32 +0100 Subject: [PATCH] remove unused imports --- rest_framework_simplejwt/authentication.py | 2 +- rest_framework_simplejwt/backends.py | 2 +- rest_framework_simplejwt/exceptions.py | 2 +- rest_framework_simplejwt/models.py | 2 +- rest_framework_simplejwt/serializers.py | 2 +- rest_framework_simplejwt/settings.py | 2 +- rest_framework_simplejwt/token_blacklist/admin.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rest_framework_simplejwt/authentication.py b/rest_framework_simplejwt/authentication.py index b1bf43868..cadf5bbd0 100644 --- a/rest_framework_simplejwt/authentication.py +++ b/rest_framework_simplejwt/authentication.py @@ -1,4 +1,4 @@ -from typing import Optional, Set, Tuple, TypeVar +from typing import Optional, TypeVar from django.contrib.auth import get_user_model from django.contrib.auth.models import AbstractBaseUser diff --git a/rest_framework_simplejwt/backends.py b/rest_framework_simplejwt/backends.py index a32d6f8a6..2c2a88874 100644 --- a/rest_framework_simplejwt/backends.py +++ b/rest_framework_simplejwt/backends.py @@ -1,7 +1,7 @@ import json from collections.abc import Iterable from datetime import timedelta -from typing import Any, Dict, Optional, Type, Union +from typing import Any, Optional, Union import jwt from django.utils.translation import gettext_lazy as _ diff --git a/rest_framework_simplejwt/exceptions.py b/rest_framework_simplejwt/exceptions.py index 8a622a8d5..8cc58e976 100644 --- a/rest_framework_simplejwt/exceptions.py +++ b/rest_framework_simplejwt/exceptions.py @@ -1,4 +1,4 @@ -from typing import Any, Dict, Optional, Union +from typing import Any, Optional, Union from django.utils.translation import gettext_lazy as _ from rest_framework import exceptions, status diff --git a/rest_framework_simplejwt/models.py b/rest_framework_simplejwt/models.py index 7fe6dd952..a0e2c8345 100644 --- a/rest_framework_simplejwt/models.py +++ b/rest_framework_simplejwt/models.py @@ -1,4 +1,4 @@ -from typing import TYPE_CHECKING, Any, List, Optional, Union +from typing import TYPE_CHECKING, Any, Optional, Union from django.contrib.auth import models as auth_models from django.db.models.manager import EmptyManager diff --git a/rest_framework_simplejwt/serializers.py b/rest_framework_simplejwt/serializers.py index b486c31e6..bebc0c4d8 100644 --- a/rest_framework_simplejwt/serializers.py +++ b/rest_framework_simplejwt/serializers.py @@ -1,4 +1,4 @@ -from typing import Any, Dict, Optional, Type, TypeVar +from typing import Any, Optional, TypeVar from django.conf import settings from django.contrib.auth import authenticate, get_user_model diff --git a/rest_framework_simplejwt/settings.py b/rest_framework_simplejwt/settings.py index feb35f51d..518a9ad66 100644 --- a/rest_framework_simplejwt/settings.py +++ b/rest_framework_simplejwt/settings.py @@ -1,5 +1,5 @@ from datetime import timedelta -from typing import Any, Dict +from typing import Any from django.conf import settings from django.test.signals import setting_changed diff --git a/rest_framework_simplejwt/token_blacklist/admin.py b/rest_framework_simplejwt/token_blacklist/admin.py index 03b9d5cf8..a524403b2 100644 --- a/rest_framework_simplejwt/token_blacklist/admin.py +++ b/rest_framework_simplejwt/token_blacklist/admin.py @@ -1,5 +1,5 @@ from datetime import datetime -from typing import Any, List, Optional, TypeVar +from typing import Any, Optional, TypeVar from django.contrib import admin from django.contrib.auth.models import AbstractBaseUser