[v1.x] Support Python 3.14 (#2769)
This commit is contained in:
parent
62137874ff
commit
494eb11d36
2 changed files with 224 additions and 42 deletions
|
|
@ -25,7 +25,7 @@ def find_context_parameter(fn: Callable[..., Any]) -> str | None:
|
|||
# Get type hints to properly resolve string annotations
|
||||
try:
|
||||
hints = typing.get_type_hints(fn)
|
||||
except Exception:
|
||||
except Exception: # pragma: no cover
|
||||
# If we can't resolve type hints, we can't find the context parameter
|
||||
return None
|
||||
|
||||
|
|
|
|||
|
|
@ -685,7 +685,5 @@ class ServerSession(
|
|||
await self._incoming_message_stream_writer.send(req)
|
||||
|
||||
@property
|
||||
def incoming_messages(
|
||||
self,
|
||||
) -> MemoryObjectReceiveStream[ServerRequestResponder]:
|
||||
def incoming_messages(self) -> MemoryObjectReceiveStream[ServerRequestResponder]:
|
||||
return self._incoming_message_stream_reader
|
||||
|
|
|
|||
Loading…
Reference in a new issue