Fix a couple of issues since changes in swh-model and es module typing
Recent changes in swh-model
broke some tests of swh-search
.
Also elasticsearch
Python module updated its typing and new mypy
errors appeared.
That diff compiles four commits fixing those issues in order for Jenkins CI to pass.
Migrated from D6366 (view on Phabricator)