diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py index 14348e357f..c9dc61c8a7 100644 --- a/seaborn/_core/plot.py +++ b/seaborn/_core/plot.py @@ -9,7 +9,7 @@ import textwrap from contextlib import contextmanager from collections import abc -from collections.abc import Callable, Generator +from collections.abc import Callable, Generator, Mapping from typing import Any, List, Literal, Optional, cast from xml.etree import ElementTree @@ -859,7 +859,7 @@ def layout( # TODO def legend (ugh) - def theme(self, config: dict[str, Any], /) -> Plot: + def theme(self, config: Mapping[str, Any], /) -> Plot: """ Control the appearance of elements in the plot.