diff --git a/astroid/brain/brain_typing.py b/astroid/brain/brain_typing.py index f50adcd50..2cea7dcaa 100644 --- a/astroid/brain/brain_typing.py +++ b/astroid/brain/brain_typing.py @@ -78,7 +78,7 @@ class {0}(metaclass=Meta): "typing.MutableMapping", "typing.Sequence", "typing.MutableSequence", - "typing.ByteString", # removed in 3.14 + "typing.ByteString", # scheduled for removal in 3.17 "typing.Tuple", "typing.List", "typing.Deque", diff --git a/tests/brain/test_brain.py b/tests/brain/test_brain.py index 75c7c94a5..563a8bc21 100644 --- a/tests/brain/test_brain.py +++ b/tests/brain/test_brain.py @@ -15,7 +15,7 @@ from astroid import MANAGER, builder, nodes, objects, test_utils, util from astroid.bases import Instance from astroid.brain.brain_namedtuple_enum import _get_namedtuple_fields -from astroid.const import PY312_PLUS, PY313_PLUS, PY314_PLUS +from astroid.const import PY312_PLUS, PY313_PLUS from astroid.exceptions import ( AttributeInferenceError, InferenceError, @@ -181,7 +181,7 @@ def check_metaclass_is_abc(node: nodes.ClassDef): if PY312_PLUS and node.name == "ByteString": # .metaclass() finds the first metaclass in the mro(), # which, from 3.12, is _DeprecateByteStringMeta (unhelpful) - # until ByteString is removed in 3.14. + # until ByteString is removed in 3.17. # Jump over the first two ByteString classes in the mro(). check_metaclass_is_abc(node.mro()[2]) else: @@ -285,9 +285,6 @@ class Derived(collections.abc.Iterator[int]): ], ) - @pytest.mark.skipif( - PY314_PLUS, reason="collections.abc.ByteString was removed in 3.14" - ) def test_collections_object_subscriptable_3(self): """With Python 3.9 the ByteString class of the collections module is subscriptable (but not the same class from typing module)""" @@ -870,9 +867,8 @@ class Derived(typing.Hashable, typing.Iterator[int]): ], ) - @pytest.mark.skipif(PY314_PLUS, reason="typing.ByteString was removed in 3.14") def test_typing_object_notsubscriptable_3(self): - """Until python39 ByteString class of the typing module is not + """The ByteString class of the typing module is not subscriptable (whereas it is in the collections' module)""" right_node = builder.extract_node( """