0.150.0: cython 3.3.0 breaks build · Issue #1818 · python-zeroconf/python-zeroconf · GitHub
Skip to content

0.150.0: cython 3.3.0 breaks build #1818

Description

@0-wiz-0

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions