pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/graphql-python/graphql-core/commit/0d6f2f27d0e8601d1b86ce90deebbac96c9d17e6

mous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> Update dependencies · graphql-python/graphql-core@0d6f2f2 · GitHub
Skip to content

Commit 0d6f2f2

Browse files
committed
Update dependencies
1 parent bab512e commit 0d6f2f2

7 files changed

Lines changed: 30 additions & 27 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ test = [
3535
"pytest-cov>=7,<8",
3636
"pytest-describe>=3.1,<4",
3737
"pytest-timeout>=2.4,<3",
38-
"pytest-codspeed>=4.2",
39-
"tox>=4.34,<5",
38+
"pytest-codspeed>=4.3",
39+
"tox>=4.47,<5",
4040
]
4141
lint = [
42-
"ruff>=0.14,<0.15",
42+
"ruff>=0.15,<0.16",
4343
"mypy>=1.19,<2",
4444
"bump2version>=1,<2",
45-
"typing-extensions>=4.7; python_version<'3.11'",
45+
"typing-extensions>=4.15; python_version<'3.11'",
4646
]
4747
doc = [
4848
"sphinx>=9.1,<10",
49-
"sphinx_rtd_theme>=3.1.0rc2,<4",
49+
"sphinx_rtd_theme>=3.1.0,<4",
5050
]
5151

5252
[tool.uv]

src/graphql/execution/execute.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,8 +1790,9 @@ def current_executor(
17901790
current_stream_item = (
17911791
BoxedAwaitableOrValue(current_executor())
17921792
if enable_early_execution
1793-
else lambda executor=current_executor: # type: ignore
1794-
BoxedAwaitableOrValue(executor())
1793+
else lambda executor=current_executor: ( # type: ignore
1794+
BoxedAwaitableOrValue(executor())
1795+
)
17951796
)
17961797

17971798
append_stream_item(current_stream_item)

tests/execution/test_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
pytestmark = [
3333
pytest.mark.anyio,
34-
pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning"),
34+
pytest.mark.filterwarnings("ignore:coroutine .* was never awaited:RuntimeWarning"),
3535
pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning"),
3636
]
3737

tests/execution/test_nonnull.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,9 @@ def describe_handles_non_null_argument():
514514
GraphQLNonNull(GraphQLString)
515515
)
516516
},
517-
resolve=lambda _obj, _info, cannotBeNull: "Passed: "
518-
+ str(cannotBeNull),
517+
resolve=lambda _obj, _info, cannotBeNull: (
518+
"Passed: " + str(cannotBeNull)
519+
),
519520
)
520521
},
521522
)

tests/execution/test_variables.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def field_with_input_arg(input_arg: GraphQLArgument):
106106
return GraphQLField(
107107
GraphQLString,
108108
args={"input": input_arg},
109-
resolve=lambda _obj, _info, **args: repr(args["input"])
110-
if "input" in args
111-
else None,
109+
resolve=lambda _obj, _info, **args: (
110+
repr(args["input"]) if "input" in args else None
111+
),
112112
)
113113

114114

tests/pyutils/test_gather_with_cancel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __await__(self):
4747
awaitable_factories: dict[str, Callable] = {
4848
"coroutine": coroutine,
4949
"task": lambda value: create_task(coroutine(value)),
50-
"custom": lambda value: CustomAwaitable(value),
50+
"custom": CustomAwaitable,
5151
}
5252

5353
with_all_types_of_awaitables = pytest.mark.parametrize(

tests/type/test_enum.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class Complex2:
5454
"fromInt": GraphQLArgument(GraphQLInt),
5555
"fromString": GraphQLArgument(GraphQLString),
5656
},
57-
resolve=lambda _source, _info, **args: args.get("fromInt")
58-
or args.get("fromString")
59-
or args.get("fromEnum"),
57+
resolve=lambda _source, _info, **args: (
58+
args.get("fromInt") or args.get("fromString") or args.get("fromEnum")
59+
),
6060
),
6161
"colorInt": GraphQLField(
6262
GraphQLInt,
@@ -75,16 +75,17 @@ class Complex2:
7575
"provideGoodValue": GraphQLArgument(GraphQLBoolean),
7676
"provideBadValue": GraphQLArgument(GraphQLBoolean),
7777
},
78-
resolve=lambda _source, _info, **args:
79-
# Note: this is one of the references of the internal values
80-
# which ComplexEnum allows.
81-
complex2
82-
if args.get("provideGoodValue")
83-
# Note: similar object, but not the same *reference* as
84-
# complex2 above. Enum internal values require object equality.
85-
else Complex2()
86-
if args.get("provideBadValue")
87-
else args.get("fromEnum"),
78+
resolve=lambda _source, _info, **args: (
79+
# Note: this is one of the references of the internal values
80+
# which ComplexEnum allows.
81+
complex2
82+
if args.get("provideGoodValue")
83+
# Note: similar object, but not the same *reference* as
84+
# complex2 above. Enum internal values require object equality.
85+
else Complex2()
86+
if args.get("provideBadValue")
87+
else args.get("fromEnum")
88+
),
8889
),
8990
"thunkValuesString": GraphQLField(
9091
GraphQLString,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy