Skip to content

Commit 04c4dd1

Browse files
committed
polish(incrementalDelivery): filter function is always passed a path
Replicates graphql/graphql-js@41bc274
1 parent 0c843f9 commit 04c4dd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/graphql/execution/execute.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,9 +1866,9 @@ async def execute_stream_iterator(
18661866
field_modes: List[FieldNode],
18671867
info: GraphQLResolveInfo,
18681868
item_type: GraphQLOutputType,
1869-
path: Optional[Path],
1870-
label: Optional[str],
1871-
parent_context: Optional[AsyncPayloadRecord],
1869+
path: Path,
1870+
label: Optional[str] = None,
1871+
parent_context: Optional[AsyncPayloadRecord] = None,
18721872
) -> None:
18731873
"""Execute stream iterator."""
18741874
index = initial_index
@@ -1912,11 +1912,11 @@ async def execute_stream_iterator(
19121912

19131913
def filter_subsequent_payloads(
19141914
self,
1915-
null_path: Optional[Path] = None,
1915+
null_path: Path,
19161916
current_async_record: Optional[AsyncPayloadRecord] = None,
19171917
) -> None:
19181918
"""Filter subsequent payloads."""
1919-
null_path_list = null_path.as_list() if null_path else []
1919+
null_path_list = null_path.as_list()
19201920
for async_record in list(self.subsequent_payloads):
19211921
if async_record is current_async_record:
19221922
# don't remove payload from where error originates

0 commit comments

Comments
 (0)