Skip to content

Commit d767578

Browse files
Relax typing strictness for Plot.theme (#3684)
1 parent 58f170f commit d767578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seaborn/_core/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import textwrap
1010
from contextlib import contextmanager
1111
from collections import abc
12-
from collections.abc import Callable, Generator
12+
from collections.abc import Callable, Generator, Mapping
1313
from typing import Any, List, Literal, Optional, cast
1414
from xml.etree import ElementTree
1515

@@ -859,7 +859,7 @@ def layout(
859859

860860
# TODO def legend (ugh)
861861

862-
def theme(self, config: dict[str, Any], /) -> Plot:
862+
def theme(self, config: Mapping[str, Any], /) -> Plot:
863863
"""
864864
Control the appearance of elements in the plot.
865865

0 commit comments

Comments
 (0)