False positive with python imports
The code
src/autopep8/autopep8.py: import tomli as tomllib
The setup.py
src/autopep8/setup.py: ['pycodestyle >= 2.10.0', 'tomli; python_version < "3.11"']
Namcap output:
autopep8 E: Dependency python-tomli detected and not included (python modules ['tomli'] needed in files ['usr/lib/python3.11/site-packages/autopep8.py'])