Skip to content

Commit f091b53

Browse files
[cherry-pick-me][fix]: dataclasses constructor break with __test__ member
1 parent f82b76a commit f091b53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

airbyte_cdk/connector_builder/connector_builder_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
MAX_STREAMS_KEY = "max_streams"
3636

3737

38-
@dataclass
38+
@dataclass(kw_only=True)
3939
class TestLimits:
4040
__test__: bool = False # Prevent pytest from treating this as a test case, despite its name
4141

unit_tests/sources/declarative/parsers/testing_components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
)
1616

1717

18-
@dataclass
18+
@dataclass(kw_only=True)
1919
class TestingSomeComponent(DefaultErrorHandler):
2020
"""
2121
A basic test class with various field permutations used to test manifests with custom components
@@ -33,7 +33,7 @@ class TestingSomeComponent(DefaultErrorHandler):
3333
paginator: DefaultPaginator = None
3434

3535

36-
@dataclass
36+
@dataclass(kw_only=True)
3737
class TestingCustomSubstreamPartitionRouter(SubstreamPartitionRouter):
3838
"""
3939
A test class based on a SubstreamPartitionRouter used for testing manifests that use custom components.

0 commit comments

Comments
 (0)