Both `typing.ByteString` and `typing.Text` are deprecated and slated for removal in Python 3.14
Since 3.12, Python raises a DeprecationWarning for typing.ByteString
https://github.com/graphql-python/graphql-core/blob/0c93b8452eed38d4f800c7e71cf6f3f3758cd1c6/src/graphql/pyutils/is_iterable.py#L2 https://github.com/graphql-python/graphql-core/blob/0c93b8452eed38d4f800c7e71cf6f3f3758cd1c6/src/graphql/pyutils/is_iterable.py#L22
This type represents the types bytes, bytearray, and memoryview of byte sequences.
Deprecated since version 3.9, will be removed in version 3.14: Prefer collections.abc.Buffer, or a union like bytes | bytearray | memoryview.
Since typing.Text is a deprecated (since 3.11) alias to str, both should be removed here at the same time.
I’d do a PR, but I’m not sure if it should be
not_iterable_types: tuple[type, ...] = (bytes, Mapping, str)
or
not_iterable_types: tuple[type, ...] = (Buffer, Mapping, str)
Thanks. Will care about that. Still waiting for a free moment to work on graphql-core again.
I think these issues have been fixed in HEAD.
Yes, should be fixed in 3.3.0a5.