|
1 | 1 | from _typeshed import Incomplete, SupportsKeysAndGetItem, SupportsNext, SupportsRichComparison |
2 | 2 | from collections.abc import Generator, Iterable, Iterator, Mapping, MutableMapping |
3 | | -from typing import Literal, TypeVar, overload |
| 3 | +from typing import Any, Literal, TypeVar, overload |
4 | 4 |
|
5 | 5 | _T = TypeVar("_T") |
6 | 6 |
|
7 | | -class URIDict(MutableMapping[str, str]): |
| 7 | +class URIDict(MutableMapping[str, MutableMapping[str, Any]]): |
8 | 8 | def normalize(self, uri: str) -> str: ... |
9 | | - store: dict[str, str] |
10 | | - def __init__(self, m: SupportsKeysAndGetItem[str, str] | Iterable[tuple[str, str]], /, **kwargs: str) -> None: ... |
11 | | - def __getitem__(self, uri: str) -> str: ... |
12 | | - def __setitem__(self, uri: str, value: str) -> None: ... |
| 9 | + store: dict[str, MutableMapping[str, Any]] |
| 10 | + def __init__(self, m: SupportsKeysAndGetItem[str, MutableMapping[str, Any]] | Iterable[tuple[str, MutableMapping[str, Any]]], /, **kwargs: MutableMapping[str, Any]) -> None: ... |
| 11 | + def __getitem__(self, uri: str) -> MutableMapping[str, Any]: ... |
| 12 | + def __setitem__(self, uri: str, value: MutableMapping[str, Any]) -> None: ... |
13 | 13 | def __delitem__(self, uri: str) -> None: ... |
14 | 14 | def __iter__(self) -> Iterator[str]: ... |
15 | 15 | def __len__(self) -> int: ... |
|
0 commit comments