From 13ad39f5c2fd2cd60b7bd4c9556756313f8cb975 Mon Sep 17 00:00:00 2001 From: Michael Quinn Date: Wed, 24 Apr 2024 19:11:56 -0700 Subject: [PATCH] Relax typing strictness for Plot.theme --- seaborn/_core/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.