Commit ddf88fb
committed
fix: Fix signature of
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
```AsyncListener._respond_query()
1 parent f5c15e9 commit ddf88fb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments