I have some generic code for loading config in different projects, and part of that monkey patches a class with a load() class function. The problem is that the IDE doesn't see that connection and will always tag the variable as "Any" - even with type hinting on the variable.
CONF: Config = Config.load()
With that, since load() is unknown, the type of CONF will always be "any", and autocomplete suggestions will always be empty. Is there a way to tell the typing system / IDE that "This IS an instance of this class, really"?
I'm using VS Code with Python plugins for IDE