From ed9753b9618d1cdd543f41231651b4cbf387c046 Mon Sep 17 00:00:00 2001 From: Guillaume Englert Date: Tue, 18 Apr 2023 23:45:38 +0200 Subject: [PATCH] Remove a useless TypeVar. --- creme/creme_core/utils/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/creme/creme_core/utils/__init__.py b/creme/creme_core/utils/__init__.py index 7adaeac244..3b0f59fcc9 100644 --- a/creme/creme_core/utils/__init__.py +++ b/creme/creme_core/utils/__init__.py @@ -1,6 +1,6 @@ ################################################################################ # -# Copyright (c) 2009-2022 Hybird +# Copyright (c) 2009-2023 Hybird # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -28,7 +28,7 @@ import sys import traceback # import warnings -from typing import Iterable, TypeVar # Callable +from typing import Iterable # TypeVar Callable from django.http import Http404 from django.utils.safestring import mark_safe @@ -37,7 +37,7 @@ from ..signals import pre_replace_related logger = logging.getLogger(__name__) -T = TypeVar('T') +# T = TypeVar('T') def create_if_needed(model, get_dict, **attrs):