You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Aimilios Tsouvelekakis (Jira)" <ji...@apache.org> on 2023/04/17 08:21:00 UTC
[jira] [Updated] (SPARK-43160) Remove typing.io namespace references as it is being removed
[ https://issues.apache.org/jira/browse/SPARK-43160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aimilios Tsouvelekakis updated SPARK-43160:
-------------------------------------------
Summary: Remove typing.io namespace references as it is being removed (was: Remove typing.io references as it is being deprecated from python 3.12)
> Remove typing.io namespace references as it is being removed
> ------------------------------------------------------------
>
> Key: SPARK-43160
> URL: https://issues.apache.org/jira/browse/SPARK-43160
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 3.2.4, 3.3.2, 3.4.0
> Reporter: Aimilios Tsouvelekakis
> Priority: Minor
>
> Python 3.11 gives a deprecation warning to the following:
> {code:java}
> /python/3.11.1/lib/python3.11/site-packages/pyspark/broadcast.py:38: DeprecationWarning: typing.io is deprecated, import directly from typing instead. typing.io will be removed in Python 3.12.
> from typing.io import BinaryIO # type: ignore[import]{code}
> The only reference comes from:
> {code:java}
> spark % git grep typing.io
> python/pyspark/broadcast.py:from typing.io import BinaryIO # type: ignore[import] {code}
> I will fix the import so it does not cause any deprecation problem.
>
> This is documeted in [1|[https://bugs.python.org/issue35089]], [2|https://docs.python.org/3/library/typing.html#typing.IO]
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org