mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Mark six as completed (#9221)
This commit is contained in:
@@ -20,5 +20,16 @@ six.viewvalues
|
||||
# Should be `operator.itemgetter[int]`. But a bug in mypy prevents using TypeVar in itemgetter__call__
|
||||
six.byte2int
|
||||
|
||||
# Utils
|
||||
six.Module_six_moves_urllib
|
||||
six.Module_six_moves_urllib_error
|
||||
six.Module_six_moves_urllib_parse
|
||||
six.Module_six_moves_urllib_request
|
||||
six.Module_six_moves_urllib_response
|
||||
six.Module_six_moves_urllib_robotparser
|
||||
|
||||
# Belongs to `django.utils.six`
|
||||
six.iterlists
|
||||
|
||||
# Unclear problems
|
||||
six.callable
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
version = "1.16.*"
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = false
|
||||
|
||||
@@ -58,9 +58,6 @@ def get_function_globals(fun: types.FunctionType) -> dict[str, Any]: ...
|
||||
def iterkeys(d: Mapping[_K, Any]) -> _Iterator[_K]: ...
|
||||
def itervalues(d: Mapping[Any, _V]) -> _Iterator[_V]: ...
|
||||
def iteritems(d: Mapping[_K, _V]) -> _Iterator[tuple[_K, _V]]: ...
|
||||
|
||||
# def iterlists
|
||||
|
||||
def viewkeys(d: Mapping[_K, Any]) -> KeysView[_K]: ...
|
||||
def viewvalues(d: Mapping[Any, _V]) -> ValuesView[_V]: ...
|
||||
def viewitems(d: Mapping[_K, _V]) -> ItemsView[_K, _V]: ...
|
||||
@@ -82,9 +79,8 @@ def assertCountEqual(self: unittest.TestCase, first: Iterable[_T], second: Itera
|
||||
def assertRaisesRegex(self: unittest.TestCase, msg: str | None = ...) -> Any: ...
|
||||
@overload
|
||||
def assertRaisesRegex(self: unittest.TestCase, callable_obj: Callable[..., object], *args: Any, **kwargs: Any) -> Any: ...
|
||||
def assertRegex(
|
||||
self: unittest.TestCase, text: AnyStr, expected_regex: AnyStr | Pattern[AnyStr], msg: str | None = ...
|
||||
) -> None: ...
|
||||
def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: AnyStr | Pattern[AnyStr], msg: Any = ...) -> None: ...
|
||||
def assertNotRegex(self: unittest.TestCase, text: AnyStr, expected_regex: AnyStr | Pattern[AnyStr], msg: Any = ...) -> None: ...
|
||||
|
||||
exec_ = exec
|
||||
|
||||
|
||||
Reference in New Issue
Block a user