Skip to content
Open
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The internal Azure Quantum Python SDK client (`azure/quantum/_client`) needs to

### Prerequisites
- Python 3.10 (or later)
- NodeJS 18.3 LTS (or later)
- NodeJS 22 LTS (or later)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mention details of upgrade in PR description


### Setup your repo
- Fork and clone the [azure-sdk-for-python](https://github.com/Azure/azure-sdk-for-python) repo (we call it SDK repo and it's absolute path)
Expand Down
14 changes: 10 additions & 4 deletions azure-quantum/azure/quantum/_client/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# --------------------------------------------------------------------------

from copy import deepcopy
import sys
from typing import Any, TYPE_CHECKING, Union
from typing_extensions import Self

from azure.core import PipelineClient
from azure.core.credentials import AzureKeyCredential
Expand All @@ -19,11 +19,16 @@
from ._utils.serialization import Deserializer, Serializer
from .operations import ServicesOperations

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self # type: ignore

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential


class WorkspaceClient:
class WorkspaceClient: # pylint: disable=docstring-keyword-should-match-keyword-only
"""Azure Quantum Workspace Services.

:ivar services: ServicesOperations operations
Expand All @@ -36,8 +41,9 @@ class WorkspaceClient:
:type credential: ~azure.core.credentials.TokenCredential or
~azure.core.credentials.AzureKeyCredential
:keyword api_version: The API version to use for this operation. Known values are
"2026-01-15-preview" and None. Default value is "2026-01-15-preview". Note that overriding this
default value may result in unsupported behavior.
"2026-01-15-preview" and None. Default value is None. If not set, the operation's default API
version will be used. Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
"""

Expand Down
8 changes: 5 additions & 3 deletions azure-quantum/azure/quantum/_client/_configuration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long,useless-suppression
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -17,7 +18,7 @@
from azure.core.credentials import TokenCredential


class WorkspaceClientConfiguration: # pylint: disable=too-many-instance-attributes
class WorkspaceClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""Configuration for WorkspaceClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -31,8 +32,9 @@ class WorkspaceClientConfiguration: # pylint: disable=too-many-instance-attribu
:type credential: ~azure.core.credentials.TokenCredential or
~azure.core.credentials.AzureKeyCredential
:keyword api_version: The API version to use for this operation. Known values are
"2026-01-15-preview" and None. Default value is "2026-01-15-preview". Note that overriding this
default value may result in unsupported behavior.
"2026-01-15-preview" and None. Default value is None. If not set, the operation's default API
version will be used. Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
"""

Expand Down
1 change: 0 additions & 1 deletion azure-quantum/azure/quantum/_client/_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Loading
Loading