@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.
package/eng/scripts/ci/pylintrc
CHANGED
|
@@ -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=
|
|
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
|
|
Binary file
|
|
@@ -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
|
|
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
|
|
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
|
|
1443
|
+
class Deserializer:
|
|
1444
1444
|
"""Response object model deserializer.
|
|
1445
1445
|
|
|
1446
1446
|
:param dict classes: Class type dictionary for deserializing complex types.
|