Skip to content

Commit

Permalink
fix py39 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Dec 19, 2024
1 parent 40eb5d8 commit b163d37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions esmerald/responses/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from functools import partial
from typing import (
TYPE_CHECKING,
Expand Down Expand Up @@ -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/).
Expand All @@ -117,7 +119,7 @@ def __init__(
),
] = None,
cookies: Annotated[
Optional["ResponseCookies"],
Optional[ResponseCookies],
Doc(
"""
A sequence of `esmerald.datastructures.Cookie` objects.
Expand Down

0 comments on commit b163d37

Please sign in to comment.