chore: make mypy happy

8 jobs for !42 with topic/default/cleaning_tox in 3 minutes and 11 seconds (queued for 3 seconds)
latest detached
Status Name Job ID Coverage
  Lint
passed black #459502
lint black

00:00:56

passed check-manifest #459533
lint check-manifest

00:00:15

passed flake8 #459534
lint flake8

00:00:31

failed mypy #459535
lint mypy allowed to fail

00:01:26

failed check-manifest #459504
lint check-manifest

00:00:28

failed flake8 #459501
lint flake8

00:00:24

failed mypy #459506
lint mypy allowed to fail

00:01:30

 
  Tests
passed py3 #459509
tests py3

00:00:41

 
Name Stage Failure
failed
mypy Lint
mypy run-test: commands[0] | mypy --ignore-missing-imports cubicweb_elasticsearch
cubicweb_elasticsearch/__pkginfo__.py:24: error: Need type annotation for "__recommends__" (hint: "__recommends__: Dict[<type>, <type>] = ...")
cubicweb_elasticsearch/testutils.py:6: error: Name "HTTPConnection" already defined (possibly by an import)
Found 2 errors in 2 files (checked 14 source files)
ERROR: InvocationError for command /builds/cubicweb/cubes/elasticsearch/.tox/mypy/bin/mypy --ignore-missing-imports cubicweb_elasticsearch (exited with code 1)
___________________________________ summary ____________________________________
ERROR: mypy: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1