Skip to content

Commit d77a9cc

Browse files
committed
Revert "🦉 Updates from OwlBot post-processor"
This reverts commit cf75db5.
1 parent 727c021 commit d77a9cc

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,12 @@ 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 (
177-
hasattr(work_item, "task")
178-
and len(work_item.task) == 3
179-
and work_item.task[1]
180-
):
176+
if hasattr(work_item, 'task') and len(work_item.task) == 3 and work_item.task[1]:
181177
dropped_message = work_item.task[1][0]
182178

183179
if dropped_message is not None:

‎noxfile.py‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,7 @@ 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 (
239-
"3.11",
240-
"3.12",
241-
"3.13",
242-
"3.14",
243-
):
238+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
244239
session.skip("cpp implementation is not supported in python 3.11+")
245240

246241
constraints_path = str(
@@ -450,12 +445,7 @@ def docfx(session):
450445
def prerelease_deps(session, protobuf_implementation):
451446
"""Run all tests with prerelease versions of dependencies installed."""
452447

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

461451
# Install all dependencies
@@ -553,4 +543,4 @@ def prerelease_deps(session, protobuf_implementation):
553543
env={
554544
"PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation,
555545
},
556-
)
546+
)

‎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"]
92+
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
9393

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

0 commit comments

Comments
 (0)