Below method has many potential return types based on values in a dictionary;

```py
    def get_config(self, key: str | None = None) -> int | dict | str | list | bool | None:
        return self._config[key] if key else self._config

```

The types I have available in my config file are limited to those specified above but at what point is list specific types redundant? Should I just set Any here?