8000 Return #type: ignore for Mapping value type variance · python/typeshed@3585916 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3585916

Browse files
committed
Return #type: ignore for Mapping value type variance
1 parent a654461 commit 3585916

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/2/typing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class ContextManager(Protocol[_T_co]):
233233
exc_value: Optional[BaseException],
234234
traceback: Optional[TracebackType]) -> Optional[bool]: ...
235235

236-
@runtime
236+
@runtime # type: ignore
237237
class Mapping(Iterable[_KT], Container[_KT], Sized, Protocol[_KT, _VT_co]):
238238
# TODO: We wish the key type could also be covariant, but that doesn't work,
239239
# see discussion in https: //github.com/python/typing/pull/273.

stdlib/3/typing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ if sys.version_info >= (3, 5):
327327
exc_value: Optional[BaseException],
328328
traceback: Optional[TracebackType]) -> Awaitable[Optional[bool]]: ...
329329

330-
@runtime
330+
@runtime # type: ignore
331331
class Mapping(_Collection[_KT], Protocol[_KT, _VT_co]):
332332
# TODO: We wish the key type could also be covariant, but that doesn't work,
333333
# see discussion in https: //github.com/python/typing/pull/273.

0 commit comments

Comments
 (0)
0