From 6d94daf9e6dd099fd4d9e55d35b23349d5d9774e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 22:49:55 +0000 Subject: [PATCH 1/5] Initial plan From 382b57c6cb21700546af5ba15f30e65a3b1d4617 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 22:53:59 +0000 Subject: [PATCH 2/5] Update Python version from 3.9 to 3.10 Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com> --- packages/http-client-python/emitter/src/run-python3.ts | 2 +- packages/http-client-python/eng/scripts/ci/mypy.ini | 2 +- packages/http-client-python/eng/scripts/ci/pylintrc | 2 +- .../http-client-python/eng/scripts/ci/pyrightconfig.json | 2 +- packages/http-client-python/eng/scripts/ci/run_pylint.py | 2 +- .../eng/scripts/setup/build_pygen_wheel.py | 6 +++--- packages/http-client-python/eng/scripts/setup/install.py | 6 +++--- packages/http-client-python/eng/scripts/setup/install.ts | 2 +- packages/http-client-python/eng/scripts/setup/prepare.py | 4 ++-- .../http-client-python/eng/scripts/setup/run-python3.ts | 2 +- packages/http-client-python/eng/scripts/setup/venvtools.py | 3 --- .../pygen/codegen/serializers/general_serializer.py | 2 +- .../codegen/templates/packaging_templates/README.md.jinja2 | 6 +++--- packages/http-client-python/generator/setup.py | 1 - .../test/unittests/test_model_base_serialization.py | 5 +---- 15 files changed, 20 insertions(+), 27 deletions(-) diff --git a/packages/http-client-python/emitter/src/run-python3.ts b/packages/http-client-python/emitter/src/run-python3.ts index 9336f672672..422a28be733 100644 --- a/packages/http-client-python/emitter/src/run-python3.ts +++ b/packages/http-client-python/emitter/src/run-python3.ts @@ -11,7 +11,7 @@ import { patchPythonPath } from "./system-requirements.js"; export async function runPython3(...args: string[]) { const command = await patchPythonPath(["python", ...args], { - version: ">=3.9", + version: ">=3.10", environmentVariable: "AUTOREST_PYTHON_EXE", }); cp.execSync(command.join(" "), { diff --git a/packages/http-client-python/eng/scripts/ci/mypy.ini b/packages/http-client-python/eng/scripts/ci/mypy.ini index 829e96d3673..6bd11f1f115 100644 --- a/packages/http-client-python/eng/scripts/ci/mypy.ini +++ b/packages/http-client-python/eng/scripts/ci/mypy.ini @@ -1,6 +1,6 @@ # global configurations [mypy] -python_version = 3.9 +python_version = 3.10 # Exclude mypy check for sub client tests exclude = .*/clientinitialization/.*\.py diff --git a/packages/http-client-python/eng/scripts/ci/pylintrc b/packages/http-client-python/eng/scripts/ci/pylintrc index 85b2a1b8f8d..387021335fc 100644 --- a/packages/http-client-python/eng/scripts/ci/pylintrc +++ b/packages/http-client-python/eng/scripts/ci/pylintrc @@ -1,5 +1,5 @@ [MASTER] -py-version=3.9 +py-version=3.10 ignore-patterns=test_*,conftest,setup reports=no diff --git a/packages/http-client-python/eng/scripts/ci/pyrightconfig.json b/packages/http-client-python/eng/scripts/ci/pyrightconfig.json index 86b3a380220..ef8340726d5 100644 --- a/packages/http-client-python/eng/scripts/ci/pyrightconfig.json +++ b/packages/http-client-python/eng/scripts/ci/pyrightconfig.json @@ -2,5 +2,5 @@ "reportUnnecessaryCast": "warning", "reportTypeCommentUsage": true, "reportMissingImports": false, - "pythonVersion": "3.9" + "pythonVersion": "3.10" } diff --git a/packages/http-client-python/eng/scripts/ci/run_pylint.py b/packages/http-client-python/eng/scripts/ci/run_pylint.py index 370cf605129..688a96aa627 100644 --- a/packages/http-client-python/eng/scripts/ci/run_pylint.py +++ b/packages/http-client-python/eng/scripts/ci/run_pylint.py @@ -38,7 +38,7 @@ def _single_dir_pylint(mod): "--load-plugins=pylint_guidelines_checker", "--output-format=parseable", "--recursive=y", - "--py-version=3.9", + "--py-version=3.10", str(inner_class.absolute()), ] ) diff --git a/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py b/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py index ceb7ce4846d..6205b1fcfc8 100644 --- a/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py +++ b/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py @@ -7,8 +7,8 @@ # -------------------------------------------------------------------------- import sys -if not sys.version_info >= (3, 9, 0): - raise Exception("Autorest for Python extension requires Python 3.9 at least") +if not sys.version_info >= (3, 10, 0): + raise Exception("Autorest for Python extension requires Python 3.10 at least") try: from package_manager import detect_package_manager, PackageManagerNotFoundError @@ -18,7 +18,7 @@ raise Exception("Your Python installation doesn't have a suitable package manager (pip or uv) available") -# Now we have a package manager (pip or uv) and Py >= 3.9, go to work +# Now we have a package manager (pip or uv) and Py >= 3.10, go to work from pathlib import Path diff --git a/packages/http-client-python/eng/scripts/setup/install.py b/packages/http-client-python/eng/scripts/setup/install.py index 4aa0a32f6c1..784e9a4e3d9 100644 --- a/packages/http-client-python/eng/scripts/setup/install.py +++ b/packages/http-client-python/eng/scripts/setup/install.py @@ -7,9 +7,9 @@ # -------------------------------------------------------------------------- import sys -if not sys.version_info >= (3, 9, 0): +if not sys.version_info >= (3, 10, 0): print( - "Warning: Autorest for Python extension requires Python 3.9 at least. We will run your code with Pyodide since your Python version isn't adequate." + "Warning: Autorest for Python extension requires Python 3.10 at least. We will run your code with Pyodide since your Python version isn't adequate." ) sys.exit(2) # Exit code 2 for inadequate environment @@ -32,7 +32,7 @@ sys.exit(2) # Exit code 2 for inadequate environment -# Now we have a package manager (uv or pip) and Py >= 3.9, go to work +# Now we have a package manager (uv or pip) and Py >= 3.10, go to work # At this point, both Python and package manager are confirmed to be available # Any failures from here should fail the npm install, not fallback to Pyodide diff --git a/packages/http-client-python/eng/scripts/setup/install.ts b/packages/http-client-python/eng/scripts/setup/install.ts index 18100a6046a..0835e6e4cfd 100644 --- a/packages/http-client-python/eng/scripts/setup/install.ts +++ b/packages/http-client-python/eng/scripts/setup/install.ts @@ -7,7 +7,7 @@ async function main() { try { // First try to resolve Python path pythonCommand = await patchPythonPath(["python", "./eng/scripts/setup/install.py"], { - version: ">=3.9", + version: ">=3.10", environmentVariable: "AUTOREST_PYTHON_EXE", }); } catch (error) { diff --git a/packages/http-client-python/eng/scripts/setup/prepare.py b/packages/http-client-python/eng/scripts/setup/prepare.py index 358baa0d338..87bb25aea8e 100644 --- a/packages/http-client-python/eng/scripts/setup/prepare.py +++ b/packages/http-client-python/eng/scripts/setup/prepare.py @@ -7,9 +7,9 @@ # -------------------------------------------------------------------------- import sys -if not sys.version_info >= (3, 9, 0): +if not sys.version_info >= (3, 10, 0): raise Warning( - "Autorest for Python extension requires Python 3.9 at least. We will run your code with Pyodide since your Python version isn't adequate." + "Autorest for Python extension requires Python 3.10 at least. We will run your code with Pyodide since your Python version isn't adequate." ) from pathlib import Path diff --git a/packages/http-client-python/eng/scripts/setup/run-python3.ts b/packages/http-client-python/eng/scripts/setup/run-python3.ts index 9336f672672..422a28be733 100644 --- a/packages/http-client-python/eng/scripts/setup/run-python3.ts +++ b/packages/http-client-python/eng/scripts/setup/run-python3.ts @@ -11,7 +11,7 @@ import { patchPythonPath } from "./system-requirements.js"; export async function runPython3(...args: string[]) { const command = await patchPythonPath(["python", ...args], { - version: ">=3.9", + version: ">=3.10", environmentVariable: "AUTOREST_PYTHON_EXE", }); cp.execSync(command.join(" "), { diff --git a/packages/http-client-python/eng/scripts/setup/venvtools.py b/packages/http-client-python/eng/scripts/setup/venvtools.py index 74206ddc40b..3868d980146 100644 --- a/packages/http-client-python/eng/scripts/setup/venvtools.py +++ b/packages/http-client-python/eng/scripts/setup/venvtools.py @@ -19,9 +19,6 @@ class ExtendedEnvBuilder(venv.EnvBuilder): def __init__(self, *args, **kwargs): self.context = None - if sys.version_info < (3, 9, 0): - # Not supported on Python 3.8, and we don't need it - kwargs.pop("upgrade_deps", None) super().__init__(*args, **kwargs) def ensure_directories(self, env_dir): diff --git a/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py b/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py index 2a015351cd4..1c54552a290 100644 --- a/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py +++ b/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py @@ -28,7 +28,7 @@ "corehttp": "1.0.0b6", } -MIN_PYTHON_VERSION = "3.9" +MIN_PYTHON_VERSION = "3.10" MAX_PYTHON_VERSION = "3.13" diff --git a/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 b/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 index f5ff2030f10..6cafc82438c 100644 --- a/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 +++ b/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 @@ -3,7 +3,7 @@ # Microsoft Azure SDK for Python This is the Microsoft {{options["package-pprint-name"]}} Client Library. -This package has been tested with Python 3.9+. +This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). # Usage @@ -36,7 +36,7 @@ python -m pip install {{ options["package-name"] }} #### Prequisites -- Python 3.9 or later is required to use this package. +- Python 3.10 or later is required to use this package. - You need an [Azure subscription][azure_sub] to use this package. - An existing {{ options["package-pprint-name"] }} instance. @@ -113,7 +113,7 @@ This package is generated by `@typespec/http-client-python` with Typespec. ### Prequisites -- Python 3.9 or later is required to use this package. +- Python 3.10 or later is required to use this package. ### Install the package diff --git a/packages/http-client-python/generator/setup.py b/packages/http-client-python/generator/setup.py index ad746f103a1..9119833b796 100644 --- a/packages/http-client-python/generator/setup.py +++ b/packages/http-client-python/generator/setup.py @@ -35,7 +35,6 @@ "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", diff --git a/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py b/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py index 8e37a85f177..40bd7510380 100644 --- a/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py +++ b/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py @@ -32,10 +32,7 @@ _deserialize, ) -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports +from collections.abc import MutableMapping JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object From 1171b88196bff70690bac9c2e3bb6e32c6464b9f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 23:01:46 +0000 Subject: [PATCH 3/5] Revert changes to only update mypy and pylint configs Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com> --- packages/http-client-python/emitter/src/run-python3.ts | 2 +- .../http-client-python/eng/scripts/ci/pyrightconfig.json | 2 +- packages/http-client-python/eng/scripts/ci/run_pylint.py | 2 +- .../eng/scripts/setup/build_pygen_wheel.py | 6 +++--- packages/http-client-python/eng/scripts/setup/install.py | 6 +++--- packages/http-client-python/eng/scripts/setup/install.ts | 2 +- packages/http-client-python/eng/scripts/setup/prepare.py | 4 ++-- .../http-client-python/eng/scripts/setup/run-python3.ts | 2 +- packages/http-client-python/eng/scripts/setup/venvtools.py | 3 +++ .../pygen/codegen/serializers/general_serializer.py | 2 +- .../codegen/templates/packaging_templates/README.md.jinja2 | 6 +++--- packages/http-client-python/generator/setup.py | 1 + .../test/unittests/test_model_base_serialization.py | 5 ++++- 13 files changed, 25 insertions(+), 18 deletions(-) diff --git a/packages/http-client-python/emitter/src/run-python3.ts b/packages/http-client-python/emitter/src/run-python3.ts index 422a28be733..9336f672672 100644 --- a/packages/http-client-python/emitter/src/run-python3.ts +++ b/packages/http-client-python/emitter/src/run-python3.ts @@ -11,7 +11,7 @@ import { patchPythonPath } from "./system-requirements.js"; export async function runPython3(...args: string[]) { const command = await patchPythonPath(["python", ...args], { - version: ">=3.10", + version: ">=3.9", environmentVariable: "AUTOREST_PYTHON_EXE", }); cp.execSync(command.join(" "), { diff --git a/packages/http-client-python/eng/scripts/ci/pyrightconfig.json b/packages/http-client-python/eng/scripts/ci/pyrightconfig.json index ef8340726d5..86b3a380220 100644 --- a/packages/http-client-python/eng/scripts/ci/pyrightconfig.json +++ b/packages/http-client-python/eng/scripts/ci/pyrightconfig.json @@ -2,5 +2,5 @@ "reportUnnecessaryCast": "warning", "reportTypeCommentUsage": true, "reportMissingImports": false, - "pythonVersion": "3.10" + "pythonVersion": "3.9" } diff --git a/packages/http-client-python/eng/scripts/ci/run_pylint.py b/packages/http-client-python/eng/scripts/ci/run_pylint.py index 688a96aa627..370cf605129 100644 --- a/packages/http-client-python/eng/scripts/ci/run_pylint.py +++ b/packages/http-client-python/eng/scripts/ci/run_pylint.py @@ -38,7 +38,7 @@ def _single_dir_pylint(mod): "--load-plugins=pylint_guidelines_checker", "--output-format=parseable", "--recursive=y", - "--py-version=3.10", + "--py-version=3.9", str(inner_class.absolute()), ] ) diff --git a/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py b/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py index 6205b1fcfc8..ceb7ce4846d 100644 --- a/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py +++ b/packages/http-client-python/eng/scripts/setup/build_pygen_wheel.py @@ -7,8 +7,8 @@ # -------------------------------------------------------------------------- import sys -if not sys.version_info >= (3, 10, 0): - raise Exception("Autorest for Python extension requires Python 3.10 at least") +if not sys.version_info >= (3, 9, 0): + raise Exception("Autorest for Python extension requires Python 3.9 at least") try: from package_manager import detect_package_manager, PackageManagerNotFoundError @@ -18,7 +18,7 @@ raise Exception("Your Python installation doesn't have a suitable package manager (pip or uv) available") -# Now we have a package manager (pip or uv) and Py >= 3.10, go to work +# Now we have a package manager (pip or uv) and Py >= 3.9, go to work from pathlib import Path diff --git a/packages/http-client-python/eng/scripts/setup/install.py b/packages/http-client-python/eng/scripts/setup/install.py index 784e9a4e3d9..4aa0a32f6c1 100644 --- a/packages/http-client-python/eng/scripts/setup/install.py +++ b/packages/http-client-python/eng/scripts/setup/install.py @@ -7,9 +7,9 @@ # -------------------------------------------------------------------------- import sys -if not sys.version_info >= (3, 10, 0): +if not sys.version_info >= (3, 9, 0): print( - "Warning: Autorest for Python extension requires Python 3.10 at least. We will run your code with Pyodide since your Python version isn't adequate." + "Warning: Autorest for Python extension requires Python 3.9 at least. We will run your code with Pyodide since your Python version isn't adequate." ) sys.exit(2) # Exit code 2 for inadequate environment @@ -32,7 +32,7 @@ sys.exit(2) # Exit code 2 for inadequate environment -# Now we have a package manager (uv or pip) and Py >= 3.10, go to work +# Now we have a package manager (uv or pip) and Py >= 3.9, go to work # At this point, both Python and package manager are confirmed to be available # Any failures from here should fail the npm install, not fallback to Pyodide diff --git a/packages/http-client-python/eng/scripts/setup/install.ts b/packages/http-client-python/eng/scripts/setup/install.ts index 0835e6e4cfd..18100a6046a 100644 --- a/packages/http-client-python/eng/scripts/setup/install.ts +++ b/packages/http-client-python/eng/scripts/setup/install.ts @@ -7,7 +7,7 @@ async function main() { try { // First try to resolve Python path pythonCommand = await patchPythonPath(["python", "./eng/scripts/setup/install.py"], { - version: ">=3.10", + version: ">=3.9", environmentVariable: "AUTOREST_PYTHON_EXE", }); } catch (error) { diff --git a/packages/http-client-python/eng/scripts/setup/prepare.py b/packages/http-client-python/eng/scripts/setup/prepare.py index 87bb25aea8e..358baa0d338 100644 --- a/packages/http-client-python/eng/scripts/setup/prepare.py +++ b/packages/http-client-python/eng/scripts/setup/prepare.py @@ -7,9 +7,9 @@ # -------------------------------------------------------------------------- import sys -if not sys.version_info >= (3, 10, 0): +if not sys.version_info >= (3, 9, 0): raise Warning( - "Autorest for Python extension requires Python 3.10 at least. We will run your code with Pyodide since your Python version isn't adequate." + "Autorest for Python extension requires Python 3.9 at least. We will run your code with Pyodide since your Python version isn't adequate." ) from pathlib import Path diff --git a/packages/http-client-python/eng/scripts/setup/run-python3.ts b/packages/http-client-python/eng/scripts/setup/run-python3.ts index 422a28be733..9336f672672 100644 --- a/packages/http-client-python/eng/scripts/setup/run-python3.ts +++ b/packages/http-client-python/eng/scripts/setup/run-python3.ts @@ -11,7 +11,7 @@ import { patchPythonPath } from "./system-requirements.js"; export async function runPython3(...args: string[]) { const command = await patchPythonPath(["python", ...args], { - version: ">=3.10", + version: ">=3.9", environmentVariable: "AUTOREST_PYTHON_EXE", }); cp.execSync(command.join(" "), { diff --git a/packages/http-client-python/eng/scripts/setup/venvtools.py b/packages/http-client-python/eng/scripts/setup/venvtools.py index 3868d980146..74206ddc40b 100644 --- a/packages/http-client-python/eng/scripts/setup/venvtools.py +++ b/packages/http-client-python/eng/scripts/setup/venvtools.py @@ -19,6 +19,9 @@ class ExtendedEnvBuilder(venv.EnvBuilder): def __init__(self, *args, **kwargs): self.context = None + if sys.version_info < (3, 9, 0): + # Not supported on Python 3.8, and we don't need it + kwargs.pop("upgrade_deps", None) super().__init__(*args, **kwargs) def ensure_directories(self, env_dir): diff --git a/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py b/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py index 1c54552a290..2a015351cd4 100644 --- a/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py +++ b/packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py @@ -28,7 +28,7 @@ "corehttp": "1.0.0b6", } -MIN_PYTHON_VERSION = "3.10" +MIN_PYTHON_VERSION = "3.9" MAX_PYTHON_VERSION = "3.13" diff --git a/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 b/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 index 6cafc82438c..f5ff2030f10 100644 --- a/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 +++ b/packages/http-client-python/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 @@ -3,7 +3,7 @@ # Microsoft Azure SDK for Python This is the Microsoft {{options["package-pprint-name"]}} Client Library. -This package has been tested with Python 3.10+. +This package has been tested with Python 3.9+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). # Usage @@ -36,7 +36,7 @@ python -m pip install {{ options["package-name"] }} #### Prequisites -- Python 3.10 or later is required to use this package. +- Python 3.9 or later is required to use this package. - You need an [Azure subscription][azure_sub] to use this package. - An existing {{ options["package-pprint-name"] }} instance. @@ -113,7 +113,7 @@ This package is generated by `@typespec/http-client-python` with Typespec. ### Prequisites -- Python 3.10 or later is required to use this package. +- Python 3.9 or later is required to use this package. ### Install the package diff --git a/packages/http-client-python/generator/setup.py b/packages/http-client-python/generator/setup.py index 9119833b796..ad746f103a1 100644 --- a/packages/http-client-python/generator/setup.py +++ b/packages/http-client-python/generator/setup.py @@ -35,6 +35,7 @@ "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", diff --git a/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py b/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py index 40bd7510380..8e37a85f177 100644 --- a/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py +++ b/packages/http-client-python/generator/test/unittests/test_model_base_serialization.py @@ -32,7 +32,10 @@ _deserialize, ) -from collections.abc import MutableMapping +if sys.version_info >= (3, 9): + from collections.abc import MutableMapping +else: + from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object From 5b5771f680f4099ffbc60d48b80f2d95ad59941f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 23:03:59 +0000 Subject: [PATCH 4/5] Update run_pylint.py to use Python 3.10 Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com> --- packages/http-client-python/eng/scripts/ci/run_pylint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-python/eng/scripts/ci/run_pylint.py b/packages/http-client-python/eng/scripts/ci/run_pylint.py index 370cf605129..688a96aa627 100644 --- a/packages/http-client-python/eng/scripts/ci/run_pylint.py +++ b/packages/http-client-python/eng/scripts/ci/run_pylint.py @@ -38,7 +38,7 @@ def _single_dir_pylint(mod): "--load-plugins=pylint_guidelines_checker", "--output-format=parseable", "--recursive=y", - "--py-version=3.9", + "--py-version=3.10", str(inner_class.absolute()), ] ) From 78d33a50dc1fe276d0b7db59c1472a14f35c1cb9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 23:27:09 +0000 Subject: [PATCH 5/5] Add chronus change file for Python 3.10 update Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com> --- .../copilot-update-python-version-2026-01-26-23-26-55.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chronus/changes/copilot-update-python-version-2026-01-26-23-26-55.md diff --git a/.chronus/changes/copilot-update-python-version-2026-01-26-23-26-55.md b/.chronus/changes/copilot-update-python-version-2026-01-26-23-26-55.md new file mode 100644 index 00000000000..e0c67697392 --- /dev/null +++ b/.chronus/changes/copilot-update-python-version-2026-01-26-23-26-55.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@typespec/http-client-python" +--- + +Update mypy and pylint configuration to target Python 3.10