Title: Cython 3.1 compatibility · Issue #1575 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Cython 3.1 compatibility · Issue #1575 · python-zeroconf/python-zeroconf
X Title: Cython 3.1 compatibility · Issue #1575 · python-zeroconf/python-zeroconf
Description: Cython 3.1.0 is in RC phase already, so we can expect a final release sooner than later. As #1559 shows, zeroconf currently doesn't work with it and I wasn't able to find any tracking issue for the issues. I have been trying to fix it my...
Open Graph Description: Cython 3.1.0 is in RC phase already, so we can expect a final release sooner than later. As #1559 shows, zeroconf currently doesn't work with it and I wasn't able to find any tracking issue for the...
X Description: Cython 3.1.0 is in RC phase already, so we can expect a final release sooner than later. As #1559 shows, zeroconf currently doesn't work with it and I wasn't able to find any tracking issue...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1575
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cython 3.1 compatibility","articleBody":"Cython 3.1.0 is in RC phase already, so we can expect a final release sooner than later. As #1559 shows, zeroconf currently doesn't work with it and I wasn't able to find any tracking issue for the issues.\n\nI have been trying to fix it myself but I'm afraid it's above my pay grade. From what I gather, Cython 3.1 got better at type annotations in `.py` files, and all the issues I've hit were somehow related to type annotations.\n\nI've filed #1574 to fix one case of low-hanging fruit.\n\n--------\n\nAnother issue I've noticed is the type mismatch in `DNSRecord.ttl`:\n\nhttps://github.com/python-zeroconf/python-zeroconf/blob/f5c15e9bc412936a6fc943771ea0d66cba73e050/src/zeroconf/_dns.pxd#L45-L47\n\nhttps://github.com/python-zeroconf/python-zeroconf/blob/f5c15e9bc412936a6fc943771ea0d66cba73e050/src/zeroconf/_dns.py#L164-L178\n\n-------\n\nOther signature mismatches I couldn't grasp. It is possible that they are actually a bug in Cython, but I don't really know Cython, so I'd appreciate if someone with better understanding of it checked, and possibly reported a bug upstream.\n\nFWICS I can reproduce the same error with the following minimal reproducer:\n\n.pxd:\n```c\ncdef void foo(object x);\n```\n\n.py:\n```python\ndef foo(x: int) -> None:\n ...\n```\n\nbut I don't know how `int` is supposed to be mapped here.","author":{"url":"https://github.com/mgorny","@type":"Person","name":"mgorny"},"datePublished":"2025-05-03T12:54:06Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/1575"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d0eb3b2d-fc1b-e098-5aa4-ea74feb5f3c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF94:200C95:294EAA:374D4D:6B0086DE |
| html-safe-nonce | 0a64dfb2e143dc18bb1a8eda2168ccc2a58a84b9574ffcd30e405f7e7f1ac554 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjk0OjIwMEM5NToyOTRFQUE6Mzc0RDREOjZCMDA4NkRFIiwidmlzaXRvcl9pZCI6IjExMDk5NTg0Njc1MDM4MTg0NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c7cc03a0b921faea71ba0e317527e72356f72280d0e80d50f6e7fa49783ad5bb |
| hovercard-subject-tag | issue:3037393815 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/1575/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1fb84d90f8be8fcdf34f8774bbe346e634373a1c2e52a29da976d14b891df82/python-zeroconf/python-zeroconf/issues/1575 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1fb84d90f8be8fcdf34f8774bbe346e634373a1c2e52a29da976d14b891df82/python-zeroconf/python-zeroconf/issues/1575 |
| og:image:alt | Cython 3.1.0 is in RC phase already, so we can expect a final release sooner than later. As #1559 shows, zeroconf currently doesn't work with it and I wasn't able to find any tracking issue for the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgorny |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git |
| octolytics-dimension-user_id | 120192235 |
| octolytics-dimension-user_login | python-zeroconf |
| octolytics-dimension-repository_id | 21548731 |
| octolytics-dimension-repository_nwo | python-zeroconf/python-zeroconf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21548731 |
| octolytics-dimension-repository_network_root_nwo | python-zeroconf/python-zeroconf |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db758f8e02b8257935fb03edf81a3e76eb3abd11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width