Skip to content

Commit b799ca3

Browse files
author
hauntsaninja
committed
don't commit testing changes
1 parent 8d2274c commit b799ca3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

stdlib/asyncio/base_events.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class BaseEventLoop(AbstractEventLoop):
298298
self, protocol_factory: Callable[[], _ProtocolT], sock: socket, *, ssl: _SSLContext = ...
299299
) -> tuple[BaseTransport, _ProtocolT]: ...
300300
if sys.version_info >= (3, 11):
301-
async def create_datagram_endpoint( # type: ignore
301+
async def create_datagram_endpoint(
302302
self,
303303
protocol_factory: Callable[[], _ProtocolT],
304304
local_addr: tuple[str, int] | None = ...,

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ if sys.version_info >= (3, 10):
17071707
class EncodingWarning(Warning): ...
17081708

17091709
if sys.version_info >= (3, 11):
1710-
_SplitCondition = Any
1710+
_SplitCondition = type[BaseException] | tuple[type[BaseException], ...] | Callable[[BaseException], bool]
17111711

17121712
class BaseExceptionGroup(BaseException):
17131713
def __new__(cls: type[Self], __message: str, __exceptions: Sequence[BaseException]) -> Self: ...

stdlib/enum.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ if sys.version_info >= (3, 11):
237237
EJECT = FlagBoundary.EJECT
238238
KEEP = FlagBoundary.KEEP
239239

240-
property = _builtins_property
240+
class property(types.DynamicClassAttribute):
241+
def __set_name__(self, ownerclass: type[Enum], name: str) -> None: ...
242+
name: str
243+
clsname: strproperty
241244
def global_enum(cls: _S) -> _S: ...
242245
def global_enum_repr(self: Enum) -> str: ...
243246
def global_flag_repr(self: Flag) -> str: ...

0 commit comments

Comments
 (0)