I have the following code:
config = wandb.config
do_something_with_config(config['bar'], config['foo'])
For some reason, every time I access a key of config, pylint gives an unsubscriptable-object error. I can add a # pylint: disable=unsubscriptable-object in every place I access a key of this object, but I'd really rather avoid that since I do so in a ton of places.
I tried changing it to config : Dict[object, str] = wandb.config and that did not resolve the problem. Is there anything I can do to inform mypy that this value is subscriptable?