Skip to content

Commit c117e97

Browse files
Merge pull request #2863 from VWS-Python/add-keyword-only-args
Enforce keyword-only arguments
2 parents 0ca5921 + a0cf4c1 commit c117e97

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/vws/query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class CloudRecoService:
4646

4747
def __init__(
4848
self,
49+
*,
4950
client_access_key: str,
5051
client_secret_key: str,
5152
base_vwq_url: str = "https://cloudreco.vuforia.com",
@@ -68,6 +69,7 @@ def __init__(
6869

6970
def query(
7071
self,
72+
*,
7173
image: _ImageType,
7274
max_num_results: int = 1,
7375
include_target_data: CloudRecoIncludeTargetData = (

src/vws/vws.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class VWS:
6363

6464
def __init__(
6565
self,
66+
*,
6667
server_access_key: str,
6768
server_secret_key: str,
6869
base_vws_url: str = "https://vws.vuforia.com",
@@ -171,11 +172,11 @@ def make_request(
171172

172173
def add_target(
173174
self,
175+
*,
174176
name: str,
175177
width: float,
176178
image: _ImageType,
177179
application_metadata: str | None,
178-
*,
179180
active_flag: bool,
180181
) -> str:
181182
"""Add a target to a Vuforia Web Services database.
@@ -302,6 +303,7 @@ def get_target_record(self, target_id: str) -> TargetStatusAndRecord:
302303

303304
def wait_for_target_processed(
304305
self,
306+
*,
305307
target_id: str,
306308
seconds_between_requests: float = 0.2,
307309
timeout_seconds: float = 60 * 5,

0 commit comments

Comments
 (0)