selfprivacy-rest-api/strawberry-graphql.patch

66 lines
2.1 KiB
Diff
Raw Normal View History

2022-06-24 15:26:51 +03:00
diff --git a/pyproject.toml b/pyproject.toml
index 3283fce..89d3e8c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -45,7 +45,6 @@ python-multipart = "^0.0.5"
sanic = {version = ">=20.12.2,<22.0.0", optional = true}
aiohttp = {version = "^3.7.4.post0", optional = true}
fastapi = {version = ">=0.65.2", optional = true}
-"backports.cached-property" = "^1.0.1"
2022-06-24 16:17:18 +03:00
2022-06-24 15:26:51 +03:00
[tool.poetry.dev-dependencies]
pytest = "^7.1"
diff --git a/strawberry/field.py b/strawberry/field.py
2022-06-24 16:17:18 +03:00
index 4e7ee4b..06c2044 100644
--- a/strawberry/field.py
+++ b/strawberry/field.py
2022-06-24 16:17:18 +03:00
@@ -1,5 +1,6 @@
import builtins
import dataclasses
+from functools import cached_property
import inspect
import sys
from typing import (
@@ -18,7 +19,6 @@ from typing import (
overload,
)
2022-06-24 16:17:18 +03:00
-from backports.cached_property import cached_property
from typing_extensions import Literal
2022-06-24 16:17:18 +03:00
from strawberry.annotation import StrawberryAnnotation
diff --git a/strawberry/types/fields/resolver.py b/strawberry/types/fields/resolver.py
2022-06-24 16:17:18 +03:00
index 0409233..f4fbe9a 100644
--- a/strawberry/types/fields/resolver.py
+++ b/strawberry/types/fields/resolver.py
2022-06-24 16:17:18 +03:00
@@ -1,13 +1,12 @@
from __future__ import annotations as _
import builtins
+from functools import cached_property
import inspect
import sys
from inspect import isasyncgenfunction, iscoroutinefunction
from typing import Callable, Dict, Generic, List, Mapping, Optional, TypeVar, Union
2022-06-24 16:17:18 +03:00
-from backports.cached_property import cached_property
-
from strawberry.annotation import StrawberryAnnotation
from strawberry.arguments import StrawberryArgument
from strawberry.exceptions import MissingArgumentsAnnotationsError
diff --git a/strawberry/types/info.py b/strawberry/types/info.py
2022-06-24 16:17:18 +03:00
index a172c04..475a3ee 100644
--- a/strawberry/types/info.py
+++ b/strawberry/types/info.py
2022-06-24 16:17:18 +03:00
@@ -1,9 +1,8 @@
import dataclasses
+from functools import cached_property
import warnings
from typing import TYPE_CHECKING, Any, Dict, Generic, List, Optional, TypeVar, Union
2022-06-24 16:17:18 +03:00
-from backports.cached_property import cached_property
-
from graphql import GraphQLResolveInfo, OperationDefinitionNode
from graphql.language import FieldNode
from graphql.pyutils.path import Path