Pilint failing on travis, but passing locally (cv2 and extension-pkg-whitelist)

Greetings everyone! First post here, trying to both raise a possible bug in the travis build system and to submit my solution to it.

I am currently running builds for a python project on a windows os, but pylint gave me some issues with cv2 not having some specific members.

Locally everything works fine, but on travis it fails. I am running the pylint command as

pylint -f parseable --errors-only --rcfile setup.cfg my_project

my setup.cfg file for pylint is as follows:

[pylint]
extension-pkg-whitelist=cv2,win32gui,win32ui,win32api
load-plugins=
    pylint.extensions.docparams,
    pylint.extensions.mccabe
disable=
    bad-continuation,
    wrong-import-position,
    invalid-name,
    line-too-long,
    too-few-public-methods,
    import-outside-toplevel
logging-format-style=fstr

Long story short, I have no idea why on travis is not working, but a workaround I found was adding

--generated-members cv2.*

to the travis pylint command. This solved my problem but I believe that’s something worth investigating on travis side!