Skip to content

Commit 5fae6e3

Browse files
updated typing
1 parent 699b40b commit 5fae6e3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

airbyte_cdk/sources/file_based/stream/default_file_based_stream.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@
99
from copy import deepcopy
1010
from functools import cache
1111
from os import path
12-
from typing import Any, Dict, Iterable, List, Mapping, MutableMapping, Optional, Set, Tuple, Union
12+
from typing import (
13+
Any,
14+
Dict,
15+
Iterable,
16+
List,
17+
Mapping,
18+
MutableMapping,
19+
Optional,
20+
Set,
21+
Tuple,
22+
Union,
23+
NoReturn,
24+
)
1325

1426
from airbyte_cdk.models import AirbyteLogMessage, AirbyteMessage, AirbyteStream, FailureType, Level
1527
from airbyte_cdk.models import Type as MessageType
@@ -395,7 +407,7 @@ async def _infer_file_schema(self, file: RemoteFile) -> SchemaType: # type: ign
395407

396408
def _raise_schema_inference_error(
397409
self, exc: Exception, file: Optional[RemoteFile] = None
398-
) -> None:
410+
) -> NoReturn:
399411
raise SchemaInferenceError(
400412
FileBasedSourceError.SCHEMA_INFERENCE_ERROR,
401413
file=file.uri if file else None,

0 commit comments

Comments
 (0)