Skip to content

Commit 4b21c88

Browse files
Alexander LakeevAlex-Blade
Alexander Lakeev
authored andcommitted
Fixes from pre-commit [automated commit]
1 parent ab1ce4e commit 4b21c88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/computation/scope.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def __init__(
133133
# shallow copy here because we don't want to replace what's in
134134
# scope when we align terms (alignment accesses the underlying
135135
# numpy array of pandas objects)
136-
scope_global = self.scope.new_child((global_dict if global_dict is not None else frame.f_globals).copy())
136+
scope_global = self.scope.new_child(
137+
(global_dict if global_dict is not None else frame.f_globals).copy()
138+
)
137139
self.scope = DeepChainMap(scope_global)
138140
if not isinstance(local_dict, Scope):
139141
scope_local = self.scope.new_child(

0 commit comments

Comments
 (0)