@typespec/http-client-python 0.3.11 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ enable=useless-suppression
17
17
  # too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
18
18
  # too-many-lines: Due to code generation many files end up with too many lines.
19
19
  # Let's black deal with bad-continuation
20
- disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin
20
+ disable=missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin
21
21
 
22
22
  [FORMAT]
23
23
  max-line-length=120
@@ -14,7 +14,7 @@ if TYPE_CHECKING:
14
14
  from .code_model import CodeModel
15
15
 
16
16
 
17
- class RawString(object):
17
+ class RawString:
18
18
  def __init__(self, string: str) -> None:
19
19
  self.string = string
20
20
 
@@ -309,7 +309,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
309
309
  return ET.Element(tag)
310
310
 
311
311
 
312
- class Model(object):
312
+ class Model:
313
313
  """Mixin for all client request body/response body models to support
314
314
  serialization and deserialization.
315
315
  """
@@ -562,7 +562,7 @@ def _decode_attribute_map_key(key):
562
562
  return key.replace("\\.", ".")
563
563
 
564
564
 
565
- class Serializer(object): # pylint: disable=too-many-public-methods
565
+ class Serializer: # pylint: disable=too-many-public-methods
566
566
  """Request object model serializer."""
567
567
 
568
568
  basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1440,7 +1440,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
1440
1440
  return children[0]
1441
1441
 
1442
1442
 
1443
- class Deserializer(object):
1443
+ class Deserializer:
1444
1444
  """Response object model deserializer.
1445
1445
 
1446
1446
  :param dict classes: Class type dictionary for deserializing complex types.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/http-client-python",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec emitter for Python SDKs",
6
6
  "homepage": "https://typespec.io",