mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Update comments for operator.itemgetter.__call__ generic following mypy 1.11 fix (#13489)
This commit is contained in:
@@ -14,7 +14,7 @@ six.get_method_self
|
||||
six.viewitems
|
||||
six.viewkeys
|
||||
six.viewvalues
|
||||
# Should be `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`
|
||||
six.byte2int
|
||||
|
||||
# Utils
|
||||
|
||||
@@ -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