Skip to content

Commit d48f5a3

Browse files
author
Joan Fontanals
authored
fix: rewrite compatible (#6202)
1 parent 77d46f7 commit d48f5a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jina/serve/executors/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,11 @@ def _validate_sagemaker(self):
655655
return
656656

657657
def _add_dynamic_batching(self, _dynamic_batching: Optional[Dict]):
658-
import collections
658+
from collections.abc import Mapping
659659

660660
def deep_update(source, overrides):
661661
for key, value in overrides.items():
662-
if isinstance(value, collections.Mapping) and value:
662+
if isinstance(value, Mapping) and value:
663663
returned = deep_update(source.get(key, {}), value)
664664
source[key] = returned
665665
else:

0 commit comments

Comments
 (0)