Skip to content

Commit 3d74d01

Browse files
committed
uv run ruff format
1 parent b082b3a commit 3d74d01

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

meta/src/meta/grammar_validator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def _optional_string_allows_plain_string(
6666
actual: TargetType, expected: TargetType
6767
) -> bool:
6868
"""True if actual is String and expected is Option[String] (optional proto string)."""
69-
if isinstance(expected, OptionType) and isinstance(
70-
expected.element_type, BaseType
71-
):
69+
if isinstance(expected, OptionType) and isinstance(expected.element_type, BaseType):
7270
if expected.element_type.name != "String":
7371
return False
7472
return isinstance(actual, BaseType) and actual.name == "String"

0 commit comments

Comments
 (0)