Skip to content

Commit b9e8a38

Browse files
committed
fix: fix signature of AsyncListener._respond_query()
Fix `AsyncListener._respond_query()` to use `DNSIncoming` type for the `msg` argument, matching `handle_query_or_defer()`. This fixes the following error with Cython 3.1.0rc1: ``` Error compiling Cython file: ------------------------------------------------------------ ... def _cancel_any_timers_for_addr(self, addr: _str) -> None: """Cancel any future truncated packet timers for the address.""" if addr in self._timers: self._timers.pop(addr).cancel() def _respond_query( ^ ------------------------------------------------------------ src/zeroconf/_listener.py:225:4: Signature not compatible with previous declaration Error compiling Cython file: ------------------------------------------------------------ ... object port, object transport, tuple v6_flow_scope ) cpdef _respond_query( ^ ------------------------------------------------------------ src/zeroconf/_listener.pxd:51:24: Previous declaration is here ```
1 parent f5c15e9 commit b9e8a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zeroconf/_listener.pxd

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cdef class AsyncListener:
5050

5151
cpdef _respond_query(
5252
self,
53-
object msg,
53+
DNSIncoming msg,
5454
object addr,
5555
object port,
5656
object transport,

0 commit comments

Comments
 (0)