diff --git a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_helper.py b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_helper.py index e0548c7a14322..507e1d917d206 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_helper.py +++ b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_helper.py @@ -19,8 +19,9 @@ def unquote_and_decode_unicode_escape_seq( # Decode Unicode escape sequences. This avoid issues with encoding # This process does not handle unicode from "\U00010000" to "\U0010FFFF" while unicode_seq_pattern.search(string): - # Get the first Unicode escape sequence - unicode_seq = unicode_seq_pattern.search(string).group(0) + # Get the first Unicode escape sequence. + # mypy: unicode_seq_pattern.search(string) is not None because of the while loop + unicode_seq = unicode_seq_pattern.search(string).group(0) # type: ignore # Replace the Unicode escape sequence with the decoded character try: string = string.replace(