Skip to content

Commit 18ff2e8

Browse files
Use ClassVar[bool] for __test__ instead of kw_only=True
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
1 parent 4f7a84e commit 18ff2e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte_cdk/connector_builder/connector_builder_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
from dataclasses import asdict, dataclass, field
7-
from typing import Any, Dict, List, Mapping
7+
from typing import Any, ClassVar, Dict, List, Mapping
88

99
from airbyte_cdk.connector_builder.test_reader import TestReader
1010
from airbyte_cdk.models import (
@@ -35,9 +35,9 @@
3535
MAX_STREAMS_KEY = "max_streams"
3636

3737

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

4242
max_records: int = field(default=DEFAULT_MAXIMUM_RECORDS)
4343
max_pages_per_slice: int = field(default=DEFAULT_MAXIMUM_NUMBER_OF_PAGES_PER_SLICE)

0 commit comments

Comments
 (0)