mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 19:12:31 +08:00
Update comments for operator.itemgetter.__call__ generic following mypy 1.11 fix (#13489)
This commit is contained in:
@@ -61,7 +61,7 @@ unichr = chr
|
||||
|
||||
def int2byte(i: int) -> bytes: ...
|
||||
|
||||
# Should be `byte2int: operator.itemgetter[int]`. But a bug in mypy prevents using TypeVar in itemgetter.__call__
|
||||
# Should be `byte2int: operator.itemgetter[int]`. But `itemgetter.__call__` returns `Any`
|
||||
def byte2int(obj: SupportsGetItem[int, _T]) -> _T: ...
|
||||
|
||||
indexbytes = operator.getitem
|
||||
|
||||
Reference in New Issue
Block a user