Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jun66j5 opened this issue Mar 29, 2025 · 0 comments
Open

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

jun66j5 opened this issue Mar 29, 2025 · 0 comments

Comments

@jun66j5
Copy link

jun66j5 commented Mar 29, 2025

According to document of typing.ByteString, it deprecated since version 3.9, will be removed in version 3.14.

$ python
Python 3.14.0a6 (main, Mar 15 2025, 08:53:03) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'3.14.0a6 (main, Mar 15 2025, 08:53:03) [GCC 11.4.0]'
>>> import aiosmtpd
>>> aiosmtpd.__version__
'1.4.6'
>>> from aiosmtpd import smtp
Traceback (most recent call last):
  File "<python-input-5>", line 1, in <module>
    from aiosmtpd import controller
  File "/venv/py314/lib/python3.14/site-packages/aiosmtpd/controller.py", line 26, in <module>
    from aiosmtpd.smtp import SMTP
  File "/venv/py314/lib/python3.14/site-packages/aiosmtpd/smtp.py", line 40, in <module>
    from aiosmtpd.proxy_protocol import ProxyData, get_proxy
  File "/venv/py314/lib/python3.14/site-packages/aiosmtpd/proxy_protocol.py", line 12, in <module>
    from typing import Any, ByteString, Dict, Optional, Protocol, Tuple, Union
ImportError: cannot import name 'ByteString' from 'typing' (/usr/lib/python3.14/typing.py)
>>>
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

No branches or pull requests

1 participant