We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d46f7 commit d48f5a3Copy full SHA for d48f5a3
jina/serve/executors/__init__.py
@@ -655,11 +655,11 @@ def _validate_sagemaker(self):
655
return
656
657
def _add_dynamic_batching(self, _dynamic_batching: Optional[Dict]):
658
- import collections
+ from collections.abc import Mapping
659
660
def deep_update(source, overrides):
661
for key, value in overrides.items():
662
- if isinstance(value, collections.Mapping) and value:
+ if isinstance(value, Mapping) and value:
663
returned = deep_update(source.get(key, {}), value)
664
source[key] = returned
665
else:
0 commit comments