-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
Bug Description
craft-cli is not compatible with Python 3.14 due to this upstream issue in the overrides module. It's unclear whether the module is still being developed, as the last commit to the main branch was over a year ago
To Reproduce
uv run --python=3.14 pytest
part yaml
Relevant log output
____________________________________________________________________________________________________ ERROR collecting tests/unit/test_completion.py _____________________________________________________________________________________________________
tests/unit/test_completion.py:32: in <module>
from overrides import override
.venv/lib/python3.14/site-packages/overrides/__init__.py:8: in <module>
from overrides.overrides import __VERSION__, overrides, override
.venv/lib/python3.14/site-packages/overrides/overrides.py:26: in <module>
from overrides.signature import ensure_signature_is_compatible
.venv/lib/python3.14/site-packages/overrides/signature.py:6: in <module>
from .typing_utils import get_args, issubtype
.venv/lib/python3.14/site-packages/overrides/typing_utils.py:50: in <module>
typing.ByteString: bytes, # https://docs.python.org/3/library/typing.html#typing.ByteString
../../../.local/share/uv/python/cpython-3.14.0a4-linux-x86_64-gnu/lib/python3.14/typing.py:3840: in __getattr__
raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
E AttributeError: module 'typing' has no attribute 'ByteString'
================================================================================================================ short test summary info ================================================================================================================
ERROR tests/unit/test_completion.py - AttributeError: module 'typing' has no attribute 'ByteString'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!