We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ffa3d8 commit 917df68Copy full SHA for 917df68
1 file changed
airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py
@@ -18,18 +18,18 @@
18
# For Connector Builder test read operations, we track the total number of records
19
# read for the stream so that we can stop reading early if we exceed the record limit.
20
class RecordCounter:
21
- def __init__(self):
+ def __init__(self) -> None:
22
self.total_record_counter = 0
23
24
- def increment(self):
+ def increment(self) -> None:
25
self.total_record_counter += 1
26
27
+ def reset(self) -> None:
28
+ self.total_record_counter = 0
29
+
30
def get_total_records(self) -> int:
31
return self.total_record_counter
32
- def reset(self):
- self.total_record_counter = 0
-
33
34
class SchemaLoaderCachingDecorator(SchemaLoader):
35
def __init__(self, schema_loader: SchemaLoader):
0 commit comments