Skip to content

Fix messages.pyx - #707

Open
taotieren wants to merge 3 commits into
Neoteroi:mainfrom
taotieren:fix-messages.pyx
Open

taotieren wants to merge 3 commits into
Neoteroi:mainfrom
taotieren:fix-messages.pyx

Conversation

@taotieren

@taotieren taotieren commented Oct 29, 2026 •

Copy link
Copy Markdown

Fixed: #706

Cython 3 forbids accessing self.__dict__ from cdef class instances
(Message, Request, Response). Switch to vars(self), which is
equivalent at runtime because the base Message class carries the
instance __dict__.
blacksheep/contents.pyx used Union and AsyncIterator in type
annotations that were never imported, so Cython 3 reports
"undeclared name". Drop the annotations since they were pure
type hints.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error Compiling 2.6.4 on Arch Linux

1 participant