Skip to content

Commit a396f68

Browse files
authored
chore: clean up remaining python 3.9 support codes (#2486)
This change is cleaning up remaining Python 3.9 support codes.
1 parent 34f76c7 commit a396f68

File tree

7 files changed

+16
-59
lines changed

7 files changed

+16
-59
lines changed

bigframes/series.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ def rename(
448448

449449
# rename the Series name
450450
if isinstance(index, typing.Hashable):
451-
# Python 3.9 doesn't allow isinstance of Optional
452451
index = typing.cast(Optional[str], index)
453452
block = self._block.with_column_labels([index])
454453

notebooks/generative_ai/bq_dataframes_ml_drug_name_generation.ipynb

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,6 @@
5858
"</table>"
5959
]
6060
},
61-
{
62-
"cell_type": "markdown",
63-
"metadata": {
64-
"id": "24743cf4a1e1"
65-
},
66-
"source": [
67-
"**_NOTE_**: This notebook has been tested in the following environment:\n",
68-
"\n",
69-
"* Python version = 3.9"
70-
]
71-
},
7261
{
7362
"cell_type": "markdown",
7463
"metadata": {
@@ -1579,12 +1568,21 @@
15791568
"provenance": []
15801569
},
15811570
"kernelspec": {
1582-
"display_name": "Python 3",
1571+
"display_name": "venv",
1572+
"language": "python",
15831573
"name": "python3"
15841574
},
15851575
"language_info": {
1576+
"codemirror_mode": {
1577+
"name": "ipython",
1578+
"version": 3
1579+
},
1580+
"file_extension": ".py",
1581+
"mimetype": "text/x-python",
15861582
"name": "python",
1587-
"version": "3.10.9"
1583+
"nbconvert_exporter": "python",
1584+
"pygments_lexer": "ipython3",
1585+
"version": "3.12.1"
15881586
}
15891587
},
15901588
"nbformat": 4,

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
DEFAULT_PYTHON_VERSION = "3.14"
5858

59-
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
59+
UNIT_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
6060
UNIT_TEST_STANDARD_DEPENDENCIES = [
6161
"mock",
6262
PYTEST_VERSION,
@@ -78,7 +78,7 @@
7878
# 3.10 is needed for Windows tests as it is the only version installed in the
7979
# bigframes-windows container image. For more information, search
8080
# bigframes/windows-docker, internally.
81-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
81+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
8282
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
8383
"jinja2",
8484
"mock",

samples/polars/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ def get_pytest_env_vars() -> Dict[str, str]:
8686
return ret
8787

8888

89-
# DO NOT EDIT - automatically generated.
9089
# All versions used to test samples.
91-
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
90+
ALL_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
9291

9392
# Any default versions that should be ignored.
9493
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]

samples/snippets/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ def get_pytest_env_vars() -> Dict[str, str]:
8686
return ret
8787

8888

89-
# DO NOT EDIT - automatically generated.
9089
# All versions used to test samples.
91-
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
90+
ALL_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
9291

9392
# Any default versions that should be ignored.
9493
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]

testing/constraints-3.10.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# When we drop Python 3.9,
2-
# please keep these in sync with the minimum versions in setup.py
1+
# Please keep these in sync with the minimum versions in setup.py
32
cloudpickle==2.0.0
43
fsspec==2023.3.0
54
gcsfs==2023.3.0

testing/constraints-3.9.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)