Skip to content

Commit

Permalink
Update generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Aug 14, 2024
1 parent ddc0085 commit 8da6a19
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aiohttp_apischema/generator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import functools
import inspect
import sys
from collections.abc import Awaitable, Callable, Mapping
from http import HTTPStatus
from pathlib import Path
from types import UnionType
from typing import Any, Literal, Required, TypedDict, TypeGuard, TypeVar, cast, get_args, get_origin
from typing import Any, Literal, TypedDict, TypeGuard, TypeVar, cast, get_args, get_origin

from aiohttp import web
from aiohttp.hdrs import METH_ALL
Expand All @@ -13,6 +14,11 @@

from aiohttp_apischema.response import APIResponse

if sys.version_info >= (3, 11):
from typing import Required
else:
from typing_extensions import Required

OPENAPI_METHODS = frozenset({"get", "put", "post", "delete", "options", "head", "patch", "trace"})

_T = TypeVar("_T")
Expand Down

0 comments on commit 8da6a19

Please sign in to comment.