https://runbot.odoo.com/runbot/batch/2390886/build/102328231 The typeshed stubs seem to have these, and pycharm finds them fine: - https://github.com/python/typeshed/blob/d6cdd5ec6d787ec491d73616fb8062e207cb5b33/stubs/psycopg2/psycopg2/errors.pyi#L109 - https://github.com/python/typeshed/blob/d6cdd5ec6d787ec491d73616fb8062e207cb5b33/stubs/psycopg2/psycopg2/errors.pyi#L214 but it might be a runbot configuration issue?