Skip to content

Commit cf75db5

Browse files
1 parent 5b653d8 commit cf75db5

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

‎google/cloud/pubsub_v1/subscriber/scheduler.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,16 @@ def shutdown(
168168
if sys.version_info < (3, 14):
169169
# For Python < 3.14, work_item.args is a tuple of positional arguments.
170170
# The message is expected to be the first argument.
171-
if hasattr(work_item, 'args') and work_item.args:
171+
if hasattr(work_item, "args") and work_item.args:
172172
dropped_message = work_item.args[0] # type: ignore[index]
173173
else:
174174
# For Python >= 3.14, work_item.task is (fn, args, kwargs).
175175
# The message is expected to be the first item in the args tuple (task[1]).
176-
if hasattr(work_item, 'task') and len(work_item.task) == 3 and work_item.task[1]:
176+
if (
177+
hasattr(work_item, "task")
178+
and len(work_item.task) == 3
179+
and work_item.task[1]
180+
):
177181
dropped_message = work_item.task[1][0]
178182

179183
if dropped_message is not None:

‎noxfile.py‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,12 @@ def install_unittest_dependencies(session, *constraints):
235235
def unit(session, protobuf_implementation):
236236
# Install all test dependencies, then install this package in-place.
237237

238-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
238+
if protobuf_implementation == "cpp" and session.python in (
239+
"3.11",
240+
"3.12",
241+
"3.13",
242+
"3.14",
243+
):
239244
session.skip("cpp implementation is not supported in python 3.11+")
240245

241246
constraints_path = str(
@@ -445,7 +450,12 @@ def docfx(session):
445450
def prerelease_deps(session, protobuf_implementation):
446451
"""Run all tests with prerelease versions of dependencies installed."""
447452

448-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
453+
if protobuf_implementation == "cpp" and session.python in (
454+
"3.11",
455+
"3.12",
456+
"3.13",
457+
"3.14",
458+
):
449459
session.skip("cpp implementation is not supported in python 3.11+")
450460

451461
# Install all dependencies
@@ -543,4 +553,4 @@ def prerelease_deps(session, protobuf_implementation):
543553
env={
544554
"PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation,
545555
},
546-
)
556+
)

‎samples/snippets/noxfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8989

9090
# DO NOT EDIT - automatically generated.
9191
# All versions used to test samples.
92-
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
92+
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
9393

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

0 commit comments

Comments
 (0)