Skip to content

Commit 965502c

Browse files
committed
Remove an unnecessary declaration
1 parent facce87 commit 965502c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/graphql/execution/execute.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,11 +1941,13 @@ def add_new_deferred_fragments(
19411941
with the calculated parent has been added; the record will be released only
19421942
after the parent has completed.
19431943
"""
1944-
new_defer_map: RefMap[DeferUsage, DeferredFragmentRecord]
19451944
if not new_defer_usages:
19461945
# Given no DeferUsages, return the existing map, creating one if necessary.
19471946
return RefMap() if defer_map is None else defer_map
1947+
1948+
# Create a copy of the old map.
19481949
new_defer_map = RefMap() if defer_map is None else RefMap(defer_map.items())
1950+
19491951
# For each new DeferUsage object:
19501952
for defer_usage in new_defer_usages:
19511953
ancestors = defer_usage.ancestors

0 commit comments

Comments
 (0)