Skip to content

Commit 274cc4c

Browse files
Run make format
1 parent 7b3ef01 commit 274cc4c

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

protovalidate/internal/extra_func.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import math
16-
import typing
1716
from urllib import parse as urlparse
1817

1918
import celpy

protovalidate/internal/string_format.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import math
1616
import re
1717
from decimal import Decimal
18-
from typing import Optional, Union
1918

2019
import celpy
2120
from celpy import celtypes

test/test_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from collections.abc import Iterable, MutableMapping
1616
from itertools import chain
17-
from typing import Any, Optional
17+
from typing import Any
1818

1919
import celpy
2020
import pytest

test/test_validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def check_compilation_errors(validator: protovalidate.Validator, msg: message.Me
238238
def _compare_violations(actual: list[rules.Violation], expected: list[rules.Violation]):
239239
"""Compares two lists of violations. The violations are expected to be in the expected order also."""
240240
assert len(actual) == len(expected)
241-
for a, e in zip(actual, expected):
241+
for a, e in zip(actual, expected, strict=False):
242242
assert a.proto.message == e.proto.message
243243
assert a.proto.rule_id == e.proto.rule_id
244244
assert a.proto.for_key == e.proto.for_key

0 commit comments

Comments
 (0)