mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
asyncio.AbstractEventLoop: Allow Path for create_unix_server() (#8376)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import ssl
|
||||
import sys
|
||||
from _typeshed import FileDescriptorLike, Self, WriteableBuffer
|
||||
from _typeshed import FileDescriptorLike, Self, StrPath, WriteableBuffer
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from collections.abc import Awaitable, Callable, Coroutine, Generator, Sequence
|
||||
from contextvars import Context
|
||||
@@ -373,7 +373,7 @@ class AbstractEventLoop:
|
||||
async def create_unix_server(
|
||||
self,
|
||||
protocol_factory: _ProtocolFactory,
|
||||
path: str | None = ...,
|
||||
path: StrPath | None = ...,
|
||||
*,
|
||||
sock: socket | None = ...,
|
||||
backlog: int = ...,
|
||||
@@ -433,7 +433,7 @@ class AbstractEventLoop:
|
||||
async def create_unix_server(
|
||||
self,
|
||||
protocol_factory: _ProtocolFactory,
|
||||
path: str | None = ...,
|
||||
path: StrPath | None = ...,
|
||||
*,
|
||||
sock: socket | None = ...,
|
||||
backlog: int = ...,
|
||||
|
||||
Reference in New Issue
Block a user