This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 7af6a666859d [SPARK-46229][PYTHON][CONNECT][FOLLOW-UP] Remove
unnecessary Python version check lower than 3.8
7af6a666859d is described below
commit 7af6a666859d2f614e9937375ea518f254bbad06
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Tue Dec 5 09:54:37 2023 +0900
[SPARK-46229][PYTHON][CONNECT][FOLLOW-UP] Remove unnecessary Python version
check lower than 3.8
### What changes were proposed in this pull request?
This PR addresses the review comment
https://github.com/apache/spark/pull/44146#discussion_r1414336068.
### Why are the changes needed?
We don't support Python lower than 3.8 so we can remove that if-else on
Python version.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing tests via CI.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #44168 from HyukjinKwon/SPARK-46229-followup.
Lead-authored-by: Hyukjin Kwon <[email protected]>
Co-authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
python/pyspark/sql/connect/_typing.py | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/python/pyspark/sql/connect/_typing.py
b/python/pyspark/sql/connect/_typing.py
index 392c62bf50d3..1b8516427dbd 100644
--- a/python/pyspark/sql/connect/_typing.py
+++ b/python/pyspark/sql/connect/_typing.py
@@ -14,16 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-import sys
-
-if sys.version_info >= (3, 8):
- from typing import Protocol, Tuple
-else:
- from typing_extensions import Protocol
-
-from typing import Tuple
from types import FunctionType
-from typing import Any, Callable, Iterable, Union, Optional, NewType
+from typing import Any, Callable, Iterable, Union, Optional, NewType,
Protocol, Tuple
import datetime
import decimal
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]