Pin mypy and drop type annotations which makes mypy unhappy
This also drops:
- spurious copyright headers to those files if present.
- fix a type issue revealed by the new mypy
Ensure the jenkins' build is fine.
Related to swh/infra/ci-cd/swh-jenkins-jobs#3812 (closed)
Migrated from D6859 (view on Phabricator)