Skip to content

Commit

Permalink
Relax typing strictness for Plot.theme (#3684)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquinn32 authored Apr 25, 2024
1 parent 58f170f commit d767578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seaborn/_core/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d767578

Please sign in to comment.