mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 19:13:34 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -16,7 +16,6 @@ from typing import (
|
||||
KeysView,
|
||||
Mapping,
|
||||
MutableSequence,
|
||||
Type,
|
||||
TypeVar,
|
||||
ValuesView,
|
||||
overload,
|
||||
@@ -220,7 +219,7 @@ class GeneratorType(Generator[_T_co, _T_contra, _V_co]):
|
||||
def send(self, __arg: _T_contra) -> _T_co: ...
|
||||
@overload
|
||||
def throw(
|
||||
self, __typ: Type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
self, __typ: type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
) -> _T_co: ...
|
||||
@overload
|
||||
def throw(self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ...) -> _T_co: ...
|
||||
@@ -236,7 +235,7 @@ class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]):
|
||||
def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ...
|
||||
@overload
|
||||
def athrow(
|
||||
self, __typ: Type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
self, __typ: type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
) -> Awaitable[_T_co]: ...
|
||||
@overload
|
||||
def athrow(self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ...) -> Awaitable[_T_co]: ...
|
||||
@@ -257,7 +256,7 @@ class CoroutineType(Coroutine[_T_co, _T_contra, _V_co]):
|
||||
def send(self, __arg: _T_contra) -> _T_co: ...
|
||||
@overload
|
||||
def throw(
|
||||
self, __typ: Type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
self, __typ: type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
) -> _T_co: ...
|
||||
@overload
|
||||
def throw(self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ...) -> _T_co: ...
|
||||
|
||||
Reference in New Issue
Block a user