Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 238704d

Browse files
committed
introduce new IncrementalPublisher class
Replicates graphql/graphql-js@d766c8e
1 parent 730ac15 commit 238704d

File tree

7 files changed

+642
-269
lines changed

7 files changed

+642
-269
lines changed

‎docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
graphql.execution.Middleware
169169
graphql.execution.execute.ExperimentalIncrementalExecutionResults
170170
graphql.execution.execute.StreamArguments
171-
graphql.execution.incremental_publisher.IncrementalPublisherMixin
171+
graphql.execution.incremental_publisher.IncrementalPublisher
172172
graphql.execution.incremental_publisher.StreamItemsRecord
173173
graphql.execution.incremental_publisher.DeferredFragmentRecord
174174
graphql.language.lexer.EscapeSequence

‎src/graphql/error/located_error.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
__all__ = ["located_error"]
1515

16+
suppress_attribute_error = suppress(AttributeError)
17+
1618

1719
def located_error(
1820
original_error: Exception,
@@ -45,6 +47,6 @@ def located_error(
4547
except AttributeError:
4648
positions = None
4749

48-
with suppress(AttributeError):
50+
with suppress_attribute_error:
4951
nodes = original_error.nodes or nodes # type: ignore
5052
return GraphQLError(message, nodes, source, positions, path, original_error)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /