Skip to content

Commit

Permalink
refactor(typing): Use Mapping instead of dict
Browse files Browse the repository at this point in the history
Mutability is not needed.
Also see #3573
  • Loading branch information
dangotbanned committed Nov 24, 2024
1 parent 7dd9c18 commit a982759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions altair/datasets/_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ class _Reader(Protocol[IntoDataFrameT, IntoFrameT]):
_Reader._name
"""

_read_fn: dict[Extension, Callable[..., IntoDataFrameT]]
_read_fn: Mapping[Extension, Callable[..., IntoDataFrameT]]
"""
Eager file read functions.
Each corresponds to a known file extension within ``vega-datasets``.
"""

_scan_fn: dict[_ExtensionScan, Callable[..., IntoFrameT]]
_scan_fn: Mapping[_ExtensionScan, Callable[..., IntoFrameT]]
"""
*Optionally*-lazy file read/scan functions.
Expand Down

0 comments on commit a982759

Please sign in to comment.