Skip to content

Commit

Permalink
fix: rewrite compatible (#6202)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM authored Sep 20, 2024
1 parent 77d46f7 commit d48f5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jina/serve/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,11 @@ def _validate_sagemaker(self):
return

def _add_dynamic_batching(self, _dynamic_batching: Optional[Dict]):
import collections
from collections.abc import Mapping

def deep_update(source, overrides):
for key, value in overrides.items():
if isinstance(value, collections.Mapping) and value:
if isinstance(value, Mapping) and value:
returned = deep_update(source.get(key, {}), value)
source[key] = returned
else:
Expand Down

0 comments on commit d48f5a3

Please sign in to comment.