Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit a8a3ead

Browse files
committed
updates linting
1 parent 8895d64 commit a8a3ead

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

tests/unit/schema/wrappers/test_method.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,31 +1061,31 @@ def test_mixin_rule():
10611061
"field_type, _type, expected",
10621062
[
10631063
# valid paged_result_field candidates
1064-
(int, 5, True), # 5 = int
1065-
(wrappers_pb2.UInt32Value, 11, True), # 11 = MessageType
1066-
(wrappers_pb2.Int32Value, 11, True), # 11 = MessageType
1064+
(int, 5, True), # 5 = int
1065+
(wrappers_pb2.UInt32Value, 11, True), # 11 = MessageType
1066+
(wrappers_pb2.Int32Value, 11, True), # 11 = MessageType
10671067
# invalid paged_result_field candidates
1068-
(float, 1, None), # 1 = float
1069-
(wrappers_pb2.UInt32Value, 1, None), # 1 = float
1070-
(wrappers_pb2.Int32Value, 1, None), # 1 = float
1068+
(float, 1, None), # 1 = float
1069+
(wrappers_pb2.UInt32Value, 1, None), # 1 = float
1070+
(wrappers_pb2.Int32Value, 1, None), # 1 = float
10711071
],
10721072
)
10731073
def test__validate_paged_field_size_type(field_type, _type, expected):
10741074
"""Test _validate_paged_field_size_type with wrapper types and type indicators."""
10751075

10761076
# Setup
10771077
if _type in {5, 1}:
1078-
# The _type values represent int (5) and float (1)
1078+
# The _type values represent int (5) and float (1)
10791079
page_size = make_field(name="page_size", type=_type)
1080-
else:
1080+
else:
10811081
# _type 11 is MESSAGETYPE
10821082
# See: https://github.com/googleapis/gapic-generator-python/blob/c8b7229ba2865d6a2f5966aa151be121de81f92d/gapic/schema/wrappers.py#L378C1-L411C10
10831083
# and in this context is associated with *Int32Value in legacy APIs
10841084
# such as BigQuery.
10851085
page_size = make_field(
10861086
name="max_results",
10871087
type=_type,
1088-
message=make_message(name=field_type.DESCRIPTOR.name)
1088+
message=make_message(name=field_type.DESCRIPTOR.name),
10891089
)
10901090

10911091
parent = make_field(name="parent", type=9) # str
@@ -1100,7 +1100,7 @@ def test__validate_paged_field_size_type(field_type, _type, expected):
11001100
page_token,
11011101
),
11021102
)
1103-
1103+
11041104
output_msg = make_message(
11051105
name="ListFoosResponse",
11061106
fields=(

0 commit comments

Comments
 (0)