[Bug 6940] New: Incompatibility with Python 3.14
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Mon Nov 25 09:06:05 UTC 2024
https://bz.mercurial-scm.org/show_bug.cgi?id=6940
Bug ID: 6940
Summary: Incompatibility with Python 3.14
Product: Mercurial
Version: stable branch
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: frenzy.madness at gmail.com
CC: mercurial-devel at mercurial-scm.org
Python Version: ---
Hi.
In Python 3.14, `typing.ByteString` is no longer available as it was deprecated
in 3.12.
See: https://docs.python.org/3.14/whatsnew/3.14.html#typing
This causes a problem when testing mercurial with the latest alpha version of
Python because in `mercurial/manifest.py` the ByteString from typing is
imported.
A quick workaround might be to remove the import and then define `ByteString =
bytes | bytearray | memoryview` but better would be to use the proper types in
the appropriate places.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list