From 6d7603e052d6672f9a089c099b5bf5396ad444a2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 13:32:50 +0000 Subject: [PATCH 1/3] chore(deps-dev): bump pyrefly from 0.24.2 to 0.26.1 in /scaleway-core Bumps [pyrefly](https://github.com/facebook/pyrefly) from 0.24.2 to 0.26.1. - [Release notes](https://github.com/facebook/pyrefly/releases) - [Commits](https://github.com/facebook/pyrefly/compare/0.24.2...0.26.1) --- updated-dependencies: - dependency-name: pyrefly dependency-version: 0.26.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- scaleway-core/poetry.lock | 26 +++++++++++++------------- scaleway-core/pyproject.toml | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/scaleway-core/poetry.lock b/scaleway-core/poetry.lock index a856daa36..2f2b74c0d 100644 --- a/scaleway-core/poetry.lock +++ b/scaleway-core/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand. [[package]] name = "certifi" @@ -210,21 +210,21 @@ files = [ [[package]] name = "pyrefly" -version = "0.24.2" +version = "0.26.1" description = "A fast Python type checker written in Rust" optional = false python-versions = ">=3.8" groups = ["dev"] files = [ - {file = "pyrefly-0.24.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:7e6bd1b88ec53b3f1ce2ece844016d7e7f0848a77022857a7fa6674a49abcc13"}, - {file = "pyrefly-0.24.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:83aa9013f2299dfc8ce11adec30a63be71528484c45e603375efe7496cb0538e"}, - {file = "pyrefly-0.24.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3bf1689032b78f8f653244cd323ee1e06a0efb6192c4d7a415d1e85aedd37905"}, - {file = "pyrefly-0.24.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8404b804a5a1bc4a54cc8e58bceacdf49d7221531843c068547241d8f476af24"}, - {file = "pyrefly-0.24.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d09f166a46e43655ea812611887ca16a0c54386296f4c9333f3f5fc7236709"}, - {file = "pyrefly-0.24.2-py3-none-win32.whl", hash = "sha256:6c602df48dcfa3240f9076c7d1e9cf9dc2d94c90ee5b4c6745f3734125a2cf3a"}, - {file = "pyrefly-0.24.2-py3-none-win_amd64.whl", hash = "sha256:9ed4690716eb47077082d4e99624e0a1165b9ac93300c8d823f42cae12ec1ef4"}, - {file = "pyrefly-0.24.2-py3-none-win_arm64.whl", hash = "sha256:96ba49c02f374d716b8674409aa653093dad5263cf4e429a1d5ec603064db715"}, - {file = "pyrefly-0.24.2.tar.gz", hash = "sha256:671b9933c2a3f646983de68bc0422736f7ce364c4f645f742559423b0b9b5150"}, + {file = "pyrefly-0.26.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d81e737125d7a5f64bc378dc699f28b33182e803d25ec74f1b59007baacb6b70"}, + {file = "pyrefly-0.26.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c0e0956065e4b45d026175adcb992472368a864ece889752b9397906d4d3ec11"}, + {file = "pyrefly-0.26.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:be24b8550a4890beea7e8843c9e4b469f70d204a73c0f38652f61d0f4edc6f23"}, + {file = "pyrefly-0.26.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2ab3ed0cadd2de0f986925f72c7ca422b5a418d9416d614012565feb56e74d3a"}, + {file = "pyrefly-0.26.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4885ec86b7d500a808adbd9f8541971e13fa3d3babe8bb48d9d20a5ece71a3f9"}, + {file = "pyrefly-0.26.1-py3-none-win32.whl", hash = "sha256:1b997e4c201c2104008fc214256a3fe0de741fbf13d54c41fe5de6dd4f62f5bd"}, + {file = "pyrefly-0.26.1-py3-none-win_amd64.whl", hash = "sha256:3856d5f2a37a2c0f59ddab2f0ab175d338f361ee1003c357cf8c2e409cd59b22"}, + {file = "pyrefly-0.26.1-py3-none-win_arm64.whl", hash = "sha256:8a1a85e6d04649d1f0ade12e4424a0f08b27be963aba99958ee377e565b80714"}, + {file = "pyrefly-0.26.1.tar.gz", hash = "sha256:f598b8fa29200e9cfa2c6d53d66bc4c7278b254192429d36bd0b49b32a553d82"}, ] [[package]] @@ -374,7 +374,7 @@ description = "A lil' TOML parser" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version == \"3.10\"" +markers = "python_version < \"3.11\"" files = [ {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"}, {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"}, @@ -483,4 +483,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.1" python-versions = ">=3.10" -content-hash = "aabeacd754732e38d64bf1a62e8297805a7928d1eea17c5df0bdc04c630ea430" +content-hash = "80c8855b188e92c662ed1fc6c1fe36dbd71266622b3cc3b37789db27288184f6" diff --git a/scaleway-core/pyproject.toml b/scaleway-core/pyproject.toml index ce35775af..5cbbc14d6 100644 --- a/scaleway-core/pyproject.toml +++ b/scaleway-core/pyproject.toml @@ -33,7 +33,7 @@ types-python-dateutil = "^2.8.19" ruff = ">=0.5.0,<0.12.5" mypy = "^1.5.1" ty = "^0.0.1a15" -pyrefly = "^0.24.2" +pyrefly = ">=0.24.2,<0.27.0" [build-system] requires = ["poetry-core"] From 27a529b0d5a8f00854650ef76c77c8a8ca5d49ac Mon Sep 17 00:00:00 2001 From: Laure Masson Date: Tue, 12 Aug 2025 10:05:51 +0200 Subject: [PATCH 2/3] resolve conflicts --- scaleway-core/poetry.lock | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scaleway-core/poetry.lock b/scaleway-core/poetry.lock index 02448b4e6..3a2246939 100644 --- a/scaleway-core/poetry.lock +++ b/scaleway-core/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand. [[package]] name = "certifi" @@ -374,7 +374,7 @@ description = "A lil' TOML parser" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version < \"3.11\"" +markers = "python_version == \"3.10\"" files = [ {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"}, {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"}, @@ -483,5 +483,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.1" python-versions = ">=3.10" -content-hash = "80c8855b188e92c662ed1fc6c1fe36dbd71266622b3cc3b37789db27288184f6" - +content-hash = "f72cf5bf221c6392739c5f8928079c02ffc0de6ce0bd3186d6de8776c7e3c128" From eab1d319b0d8fcf88b6ce0fac9a274360cc48756 Mon Sep 17 00:00:00 2001 From: Laure Masson Date: Tue, 12 Aug 2025 10:51:47 +0200 Subject: [PATCH 3/3] fix(core): check if value is not none --- scaleway-core/scaleway_core/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scaleway-core/scaleway_core/api.py b/scaleway-core/scaleway_core/api.py index 6dd292ecd..002d6fe72 100644 --- a/scaleway-core/scaleway_core/api.py +++ b/scaleway-core/scaleway_core/api.py @@ -185,7 +185,7 @@ def _request( return response def _throw_on_error(self, res: requests.Response) -> None: - if res.status_code >= 400: + if res.status_code is not None and res.status_code >= 400: data = res.json() if data: