From a6497de6210650b3a5e4fa682633fe1ab2aa9318 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:18:51 -0800 Subject: [PATCH 1/2] Bump types-setuptools from 80.9.0.20251223 to 81.0.0.20260209 (#997) Bumps [types-setuptools](https://github.com/typeshed-internal/stub_uploader) from 80.9.0.20251223 to 81.0.0.20260209. - [Commits](https://github.com/typeshed-internal/stub_uploader/commits) --- updated-dependencies: - dependency-name: types-setuptools dependency-version: 81.0.0.20260209 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: justinpolygon <123573436+justinpolygon@users.noreply.github.com> --- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 4494c57f..605ca785 100644 --- a/poetry.lock +++ b/poetry.lock @@ -950,14 +950,14 @@ files = [ [[package]] name = "types-setuptools" -version = "80.9.0.20251223" +version = "81.0.0.20260209" description = "Typing stubs for setuptools" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "types_setuptools-80.9.0.20251223-py3-none-any.whl", hash = "sha256:1b36db79d724c2287d83dc052cf887b47c0da6a2fff044378be0b019545f56e6"}, - {file = "types_setuptools-80.9.0.20251223.tar.gz", hash = "sha256:d3411059ae2f5f03985217d86ac6084efea2c9e9cacd5f0869ef950f308169b2"}, + {file = "types_setuptools-81.0.0.20260209-py3-none-any.whl", hash = "sha256:4facf71e3f953f8f5ac0020cd6c1b5e493aaff0183e85830bc34870b6abf8475"}, + {file = "types_setuptools-81.0.0.20260209.tar.gz", hash = "sha256:2c2eb64499b41b672c387f6f45678a28d20a143a81b45a5c77acbfd4da0df3e1"}, ] [[package]] @@ -1117,4 +1117,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" python-versions = "^3.9" -content-hash = "a107a664db6e290f90c70e0ef2f9bd71a553895783c6c62599c6ff9c0f4954d5" +content-hash = "859fb753010770932bb13116107b08bf52ef64a130954852216b405cc219fc21" diff --git a/pyproject.toml b/pyproject.toml index 7372e96b..058444af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ sphinx-rtd-theme = "^3.1.0" # keep this in sync with docs/requirements.txt for readthedocs.org sphinx-autodoc-typehints = "^2.3.0" types-certifi = "^2021.10.8" -types-setuptools = "^80.9.0" +types-setuptools = "^81.0.0" pook = "^2.1.4" orjson = "^3.11.5" From e7d51f0e01e0f181b0fd63773259273ed28ea3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hynek=20Dav=C3=ADdek?= Date: Thu, 26 Feb 2026 16:46:45 +0100 Subject: [PATCH 2/2] Initialize pool manager with timeout (#977) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Initialize pool manager with timeout * chore: expose self.timeout on BaseClient + minor cleanup --------- Co-authored-by: Hynek DavĂ­dek Co-authored-by: justinpolygon <123573436+justinpolygon@users.noreply.github.com> --- massive/rest/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/massive/rest/base.py b/massive/rest/base.py index 66c28924..3349d7ef 100644 --- a/massive/rest/base.py +++ b/massive/rest/base.py @@ -68,6 +68,9 @@ def __init__( backoff_factor=0.1, # [0.0s, 0.2s, 0.4s, 0.8s, 1.6s, ...] ) + # https://urllib3.readthedocs.io/en/stable/reference/urllib3.util.html#urllib3.util.Timeout + self.timeout = urllib3.Timeout(connect=connect_timeout, read=read_timeout) + # https://urllib3.readthedocs.io/en/stable/reference/urllib3.poolmanager.html # https://urllib3.readthedocs.io/en/stable/reference/urllib3.connectionpool.html#urllib3.HTTPConnectionPool self.client = urllib3.PoolManager( @@ -76,10 +79,9 @@ def __init__( ca_certs=certifi.where(), cert_reqs="CERT_REQUIRED", retries=retry_strategy, # use the customized Retry instance + timeout=self.timeout, # set timeout for each request ) - self.timeout = urllib3.Timeout(connect=connect_timeout, read=read_timeout) - if verbose: logger.setLevel(logging.DEBUG) self.trace = trace