Skip to content

Replace ByteString with bytearray#556

Closed
manisandro wants to merge 1 commit intoaio-libs:masterfrom
manisandro:master
Closed

Replace ByteString with bytearray#556
manisandro wants to merge 1 commit intoaio-libs:masterfrom
manisandro:master

Conversation

@manisandro
Copy link
Copy Markdown

Fixes build with python 3.14

Copy link
Copy Markdown
Member

@Dreamsorcerer Dreamsorcerer Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why bytearray? There are defaults here which are clearly bytes, not bytearray, and the docs suggest replacing it with Buffer.
https://docs.python.org/3/library/typing.html#typing.ByteString

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed; I'll have to take a closer look, but Buffer is probably the more correct option

@waynew
Copy link
Copy Markdown
Contributor

waynew commented Jun 18, 2025

Closes #549

@msapiro
Copy link
Copy Markdown

msapiro commented Oct 18, 2025

Python 3.14 is released. We need an aiosmtpd release that supports Python 3.14.

@fumiyas
Copy link
Copy Markdown

fumiyas commented Apr 3, 2026

Dear maintainers, could you please proceed with the merge?

@webknjaz webknjaz enabled auto-merge (squash) May 7, 2026 13:55
@webknjaz webknjaz linked an issue May 7, 2026 that may be closed by this pull request
Fixes build with python 3.14
@webknjaz
Copy link
Copy Markdown
Member

webknjaz commented May 7, 2026

#575 covers the runtime changes. Feel free to port the docs changes for that in a separate PR.

@webknjaz webknjaz closed this May 7, 2026
auto-merge was automatically disabled May 7, 2026 16:31

Pull request was closed

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.

Using of typing.ByteString which will be removed in Python 3.14

6 participants