Enable postponed evaluation of annotations for all source modules

This allows using the latest annotation syntax supported by the type
checker regardless of the runtime Python version.
This commit is contained in:
Maarten ter Huurne 2023-03-16 18:19:56 +01:00
parent 885da698d5
commit 0043fedf46
5 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import copy

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import secrets
import uuid

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import warnings
from django.core.exceptions import ObjectDoesNotExist

View file

@ -1,3 +1,5 @@
from __future__ import annotations
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.db.models.functions import Now

View file

@ -1,3 +1,5 @@
from __future__ import annotations
from copy import deepcopy
from functools import wraps