Skip to content

Commit

Permalink
Some type fixing for matter_id (#26368)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Litvin <andreilitvin@google.com>
  • Loading branch information
andy31415 and andreilitvin authored May 4, 2023
1 parent 5ff1818 commit de1c64a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def FieldToGlobalName(field: Field, context: TypeLookupContext) -> Union[str, No
}


def _CppType(field: Field, context: TypeLookupContext) -> Union[str, None]:
def _CppType(field: Field, context: TypeLookupContext) -> str:
if field.data_type.name.lower() in _KNOWN_DECODABLE_TYPES:
return _KNOWN_DECODABLE_TYPES[field.data_type.name.lower()]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, locator: Optional[xml.sax.xmlreader.Locator] = None):
# Map of code -> attribute
self._global_attributes = {}

def GetCurrentLocationMeta(self) -> ParseMetaData:
def GetCurrentLocationMeta(self) -> Optional[ParseMetaData]:
if not self.locator:
return None

Expand Down

0 comments on commit de1c64a

Please sign in to comment.