Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/mock_vws/_mock_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __str__(self) -> str:


@beartype
@dataclass(frozen=True)
@dataclass(frozen=True, kw_only=True)
class RequestData:
"""A library-agnostic representation of an HTTP request.

Expand All @@ -50,7 +50,7 @@ class RequestData:


@beartype
@dataclass(frozen=True)
@dataclass(frozen=True, kw_only=True)
class Route:
"""A representation of a VWS route.

Expand Down
2 changes: 1 addition & 1 deletion src/mock_vws/_services_validators/key_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


@beartype
@dataclass
@dataclass(frozen=True, kw_only=True)
class _Route:
"""A representation of a VWS route.

Expand Down
4 changes: 2 additions & 2 deletions src/mock_vws/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _random_hex() -> str:


@beartype
@dataclass(eq=True, frozen=True)
@dataclass(eq=True, frozen=True, kw_only=True)
class CloudDatabase:
"""Credentials for VWS APIs.

Expand Down Expand Up @@ -180,7 +180,7 @@ def processing_targets(self) -> set[ImageTarget]:


@beartype
@dataclass(eq=True, frozen=True)
@dataclass(eq=True, frozen=True, kw_only=True)
class VuMarkDatabase:
"""Credentials for the VuMark generation API.

Expand Down
4 changes: 2 additions & 2 deletions src/mock_vws/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _time_now() -> datetime.datetime:


@beartype(conf=BeartypeConf(is_pep484_tower=True))
@dataclass(frozen=True, eq=True)
@dataclass(frozen=True, eq=True, kw_only=True)
class ImageTarget:
"""A Vuforia image target as managed in
https://developer.vuforia.com/target-manager.
Expand Down Expand Up @@ -219,7 +219,7 @@ def to_dict(self) -> ImageTargetDict:


@beartype(conf=BeartypeConf(is_pep484_tower=True))
@dataclass(frozen=True, eq=True)
@dataclass(frozen=True, eq=True, kw_only=True)
class VuMarkTarget:
"""
A VuMark target as managed in
Expand Down
4 changes: 2 additions & 2 deletions tests/mock_vws/fixtures/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class _VuMarkCloudDatabaseSettings(BaseSettings):
)


@dataclass(frozen=True)
@dataclass(frozen=True, kw_only=True)
class InactiveVuMarkCloudDatabase:
"""Credentials for an inactive VuMark database."""

Expand All @@ -77,7 +77,7 @@ class InactiveVuMarkCloudDatabase:
server_secret_key: str = field(repr=False)


@dataclass(frozen=True)
@dataclass(frozen=True, kw_only=True)
class VuMarkCloudDatabase:
"""Credentials for the VuMark generation API."""

Expand Down
2 changes: 1 addition & 1 deletion tests/mock_vws/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from mock_vws._constants import ResultCodes


@dataclass(frozen=True)
@dataclass(frozen=True, kw_only=True)
class Endpoint:
"""Details of endpoints to be called in tests.

Expand Down
Loading