Skip to content

Commit 76f7e4b

Browse files
sedat4rasclaude
andcommitted
Apply reviewer suggestion: use Mapping instead of SupportsKeysAndGetItem for URIDict.__init__ m parameter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1036dae commit 76f7e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/jsonschema/jsonschema/_utils.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from _typeshed import Incomplete, SupportsKeysAndGetItem, SupportsNext, SupportsRichComparison
1+
from _typeshed import Incomplete, SupportsNext, SupportsRichComparison
22
from collections.abc import Generator, Iterable, Iterator, Mapping, MutableMapping
33
from typing import Any, Literal, TypeVar, overload
44

@@ -9,7 +9,7 @@ class URIDict(MutableMapping[str, MutableMapping[str, Any]]):
99
store: dict[str, MutableMapping[str, Any]]
1010
def __init__(
1111
self,
12-
m: SupportsKeysAndGetItem[str, MutableMapping[str, Any]] | Iterable[tuple[str, MutableMapping[str, Any]]],
12+
m: Mapping[str, MutableMapping[str, Any]] | Iterable[tuple[str, MutableMapping[str, Any]]],
1313
/,
1414
**kwargs: MutableMapping[str, Any],
1515
) -> None: ...

0 commit comments

Comments
 (0)