Skip to content

Commit f6ec7e3

Browse files
authored
[http-client-python] bump pyright version (#3215)
* Update dependencies * Update dependencies (2025-09-22 09:01:33) * Regenerate for typespec-python (2025-09-22 09:06:40) * Regenerate for autorest.python (2025-09-22 09:21:41) * add changelog --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent e9b4645 commit f6ec7e3

306 files changed

Lines changed: 321 additions & 314 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions

eng/scripts/run_mypy.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ def _single_dir_mypy(mod):
3232
logging.warning("Skipping mypy for {}".format(mod))
3333
return True
3434
inner_class = next(
35-
d for d in mod.iterdir()
36-
if d.is_dir()
37-
and not str(d).endswith("egg-info")
38-
and not str(d).startswith(tuple(PACKAGES_TO_SKIP))
35+
d
36+
for d in mod.iterdir()
37+
if d.is_dir() and not str(d).endswith("egg-info") and not str(d).startswith(tuple(PACKAGES_TO_SKIP))
3938
)
4039
try:
4140
check_call(

packages/autorest.python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
3131
"dependencies": {
32-
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTM1MTIyNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.17.0.tgz",
32+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTM2NTY3Ni9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.17.0.tgz",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "~4.19.1"

packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

packages/autorest.python/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

packages/autorest.python/samples/specification/basic/generated/azure/basic/sample/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

0 commit comments

Comments
 (0)