Skip to content

Commit 78f90cf

Browse files
committed
Reshuffle the type ignores
1 parent b77fa8f commit 78f90cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/_typeshed/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ class SupportsTrunc(Protocol):
162162

163163
# The second and third overload could technically be combined, but splitting
164164
# them works better with some type checkers.
165-
class SupportsGet(Protocol[_KT_contra, _VT_co]):
165+
class SupportsGet(Protocol[_KT_contra, _VT_co]):# type: ignore[misc] # Covariant type as parameter
166166
@overload
167167
def get(self, key: _KT_contra, /) -> _VT_co | None: ...
168168
@overload
169-
def get(self, key: _KT_contra, default: _VT_co, /) -> _VT_co: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues] # Covariant type as parameter
169+
def get(self, key: _KT_contra, default: _VT_co, /) -> _VT_co: ... # pyright: ignore[reportGeneralTypeIssues] # Covariant type as parameter
170170
@overload
171171
def get(self, key: _KT_contra, default: _T, /) -> _VT_co | _T: ...
172172

0 commit comments

Comments
 (0)