From b163d37292a71927d38c6944be7af41fb8840148 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 19 Dec 2024 13:37:51 +0100 Subject: [PATCH] fix py39 linting --- esmerald/responses/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/esmerald/responses/base.py b/esmerald/responses/base.py index eacdb6d4..30422553 100644 --- a/esmerald/responses/base.py +++ b/esmerald/responses/base.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from functools import partial from typing import ( TYPE_CHECKING, @@ -101,7 +103,7 @@ def __init__( ), ] = None, background: Annotated[ - Optional[Union["BackgroundTask", "BackgroundTasks"]], + Optional[Union[BackgroundTask, BackgroundTasks]], Doc( """ Any instance of a [BackgroundTask or BackgroundTasks](https://esmerald.dev/background-tasks/). @@ -117,7 +119,7 @@ def __init__( ), ] = None, cookies: Annotated[ - Optional["ResponseCookies"], + Optional[ResponseCookies], Doc( """ A sequence of `esmerald.datastructures.Cookie` objects.