Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion openapi_core/unmarshalling/schemas/factories.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import warnings
from typing import Any
from typing import Dict
Expand All @@ -6,7 +7,10 @@
from typing import Type
from typing import Union

from backports.cached_property import cached_property
if sys.version_info >= (3, 8):
from functools import cached_property
else:
from backports.cached_property import cached_property
from jsonschema.protocols import Validator
from openapi_schema_validator import OAS30Validator

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ requests = {version = "*", optional = true}
werkzeug = "*"
typing-extensions = "^4.3.0"
jsonschema-spec = "^0.1.1"
backports-cached-property = "^1.0.2"
backports-cached-property = {version = "^1.0.2", python = "<3.8" }

[tool.poetry.extras]
django = ["django"]
Expand Down