We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b082b3a commit 3d74d01Copy full SHA for 3d74d01
1 file changed
meta/src/meta/grammar_validator.py
@@ -66,9 +66,7 @@ def _optional_string_allows_plain_string(
66
actual: TargetType, expected: TargetType
67
) -> bool:
68
"""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
- ):
+ if isinstance(expected, OptionType) and isinstance(expected.element_type, BaseType):
72
if expected.element_type.name != "String":
73
return False
74
return isinstance(actual, BaseType) and actual.name == "String"
0 commit comments