Added type hints for configuration, which should make IDEs a little less annoyed.
i.e. set config variable to Fields instead of Config when known to only consist of fields.
i.e. set config variable to Fields instead of Config when known to only consist of fields.