Skip to content

Commit 42e4160

Browse files
author
SDKAuto
committed
CodeGen from PR 30999 in Azure/azure-rest-api-specs
Merge e4aa78adec4df4eac296f25e21091a2fc4d74d04 into 6bd2fd3e6d02b020b9b9f384f980eb40c162f100
1 parent 62ddf8f commit 42e4160

File tree

18 files changed

+113
-120
lines changed

18 files changed

+113
-120
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "4883fa5dbf6f2c9093fac8ce334547e9dfac68fa",
2+
"commit": "6728221baeb434b39023ca36419b0f9910ad0341",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/computeschedule/ComputeSchedule.Management",
5-
"@azure-tools/typespec-python": "0.33.0"
5+
"@azure-tools/typespec-python": "0.36.0"
66
}

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
__all__ = [
2222
"ComputeScheduleMgmtClient",
2323
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
24+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2525

2626
_patch_sdk()

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
from .operations import Operations, ScheduledActionsOperations
2121

2222
if TYPE_CHECKING:
23-
# pylint: disable=unused-import,ungrouped-imports
2423
from azure.core.credentials import TokenCredential
2524

2625

27-
class ComputeScheduleMgmtClient: # pylint: disable=client-accepts-api-version-keyword
26+
class ComputeScheduleMgmtClient:
2827
"""Microsoft.ComputeSchedule Resource Provider management API.
2928
3029
:ivar operations: Operations operations

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/_configuration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class ComputeScheduleMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class ComputeScheduleMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for ComputeScheduleMgmtClient.
2322
2423
Note that all parameters used to create this instance are saved as instance

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/_model_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=too-many-lines
12
# coding=utf-8
23
# --------------------------------------------------------------------------
34
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -636,7 +637,7 @@ def _deserialize(cls, data, exist_discriminators):
636637
return mapped_cls._deserialize(data, exist_discriminators)
637638

638639
def as_dict(self, *, exclude_readonly: bool = False) -> typing.Dict[str, typing.Any]:
639-
"""Return a dict that can be JSONify using json.dump.
640+
"""Return a dict that can be turned into json using json.dump.
640641
641642
:keyword bool exclude_readonly: Whether to remove the readonly properties.
642643
:returns: A dict JSON compatible object
@@ -733,7 +734,7 @@ def _sorted_annotations(types: typing.List[typing.Any]) -> typing.List[typing.An
733734
)
734735

735736

736-
def _get_deserialize_callable_from_annotation( # pylint: disable=R0911, R0915, R0912
737+
def _get_deserialize_callable_from_annotation( # pylint: disable=too-many-return-statements, too-many-branches
737738
annotation: typing.Any,
738739
module: typing.Optional[str],
739740
rf: typing.Optional["_RestField"] = None,

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/_serialization.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pylint: disable=too-many-lines
21
# --------------------------------------------------------------------------
32
#
43
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -227,7 +226,7 @@ class _FixedOffset(datetime.tzinfo): # type: ignore
227226
:param datetime.timedelta offset: offset in timedelta format
228227
"""
229228

230-
def __init__(self, offset):
229+
def __init__(self, offset) -> None:
231230
self.__offset = offset
232231

233232
def utcoffset(self, dt):
@@ -599,7 +598,7 @@ class Serializer(object): # pylint: disable=too-many-public-methods
599598
"multiple": lambda x, y: x % y != 0,
600599
}
601600

602-
def __init__(self, classes: Optional[Mapping[str, type]] = None):
601+
def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
603602
self.serialize_type = {
604603
"iso-8601": Serializer.serialize_iso,
605604
"rfc-1123": Serializer.serialize_rfc,
@@ -1453,7 +1452,7 @@ class Deserializer(object):
14531452

14541453
valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?")
14551454

1456-
def __init__(self, classes: Optional[Mapping[str, type]] = None):
1455+
def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
14571456
self.deserialize_type = {
14581457
"iso-8601": Deserializer.deserialize_iso,
14591458
"rfc-1123": Deserializer.deserialize_rfc,

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/aio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
__all__ = [
1919
"ComputeScheduleMgmtClient",
2020
]
21-
__all__.extend([p for p in _patch_all if p not in __all__])
21+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2222

2323
_patch_sdk()

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/aio/_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
from .operations import Operations, ScheduledActionsOperations
2121

2222
if TYPE_CHECKING:
23-
# pylint: disable=unused-import,ungrouped-imports
2423
from azure.core.credentials_async import AsyncTokenCredential
2524

2625

27-
class ComputeScheduleMgmtClient: # pylint: disable=client-accepts-api-version-keyword
26+
class ComputeScheduleMgmtClient:
2827
"""Microsoft.ComputeSchedule Resource Provider management API.
2928
3029
:ivar operations: Operations operations

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/aio/_configuration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from .._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials_async import AsyncTokenCredential
1918

2019

21-
class ComputeScheduleMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class ComputeScheduleMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for ComputeScheduleMgmtClient.
2322
2423
Note that all parameters used to create this instance are saved as instance

sdk/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule/aio/operations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"Operations",
1818
"ScheduledActionsOperations",
1919
]
20-
__all__.extend([p for p in _patch_all if p not in __all__])
20+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2121
_patch_sdk()

0 commit comments

Comments
 (0)