After updating cython in pkgsrc to 3.3.0, the build of zeroconf 0.150.0 starting showing the following error:
[ 1/18] Cythonizing src/zeroconf/_cache.py
Error compiling Cython file:
------------------------------------------------------------
...
def names(self) -> list[str]:
"""Return a copy of the list of current cache names."""
return list(self.cache)
def async_mark_unique_records_older_than_1s_to_expire(
^
------------------------------------------------------------
src/zeroconf/_cache.py:325:4: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
@cython.locals(service_record=DNSService)
cdef void _async_remove(self, DNSRecord record)
@cython.locals(record=DNSRecord, created_double=double)
cpdef void async_mark_unique_records_older_than_1s_to_expire(self, cython.set unique_types, object answers, double now)
^
------------------------------------------------------------
src/zeroconf/_cache.pxd:80:64: Previous declaration is here
The full signature in the .py file is:
def async_mark_unique_records_older_than_1s_to_expire(
self,
unique_types: set[tuple[_str, _int, _int]],
answers: Iterable[DNSRecord],
now: _float,
) -> None:
I'm not sure what cython needs to fix this.
After updating cython in pkgsrc to 3.3.0, the build of zeroconf 0.150.0 starting showing the following error:
The full signature in the
.pyfile is:I'm not sure what cython needs to fix this.