refactor: use importlib instead of imp in compat.py

11 jobs for !43 with topic/default/deprecated-warnings in 3 minutes and 17 seconds (queued for 1 minute and 31 seconds)
latest merge request
Name Stage Failure
failed
mypy Lint
logilab/common/optik_ext.py:365: note: This violates the Liskov substitution principle
logilab/common/optik_ext.py:365: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
logilab/common/optik_ext.py:371: error: Argument 1 to "format_option_strings" of "HelpFormatter" has incompatible type "OptionParser"; expected "Option"
Found 6 errors in 3 files (checked 41 source files)
ERROR: InvocationError for command /builds/open-source/logilab-common/.tox/mypy/bin/mypy --ignore-missing-imports logilab (exited with code 1)
___________________________________ summary ____________________________________
ERROR: mypy: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1