Skip to content

Commit

Permalink
Fix FilesSpec parameters variance issues by making it a Mapping inste…
Browse files Browse the repository at this point in the history
…ad of a dict
  • Loading branch information
Avasam committed Aug 22, 2024
1 parent f068602 commit eb71932
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jaraco/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
import ctypes
import importlib
import pathlib
from typing import Dict, Protocol, Union
from typing import runtime_checkable
from typing import Mapping, Protocol, Union, runtime_checkable


log = logging.getLogger(__name__)
Expand Down Expand Up @@ -285,7 +284,7 @@ class Symlink(str):
"""


FilesSpec = Dict[str, Union[str, bytes, Symlink, 'FilesSpec']]
FilesSpec = Mapping[str, Union[str, bytes, Symlink, 'FilesSpec']]


@runtime_checkable
Expand Down
1 change: 1 addition & 0 deletions newsfragments/3.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``FilesSpec`` parameters variance issues by making it a `typing.Mapping` instead of a `dict` -- by :user:`Avasam`

0 comments on commit eb71932

Please sign in to comment.