diff --git a/packages/abstractions/kiota_abstractions/serialization/parse_node_helper.py b/packages/abstractions/kiota_abstractions/serialization/parse_node_helper.py index 388a7e4..a1b073b 100644 --- a/packages/abstractions/kiota_abstractions/serialization/parse_node_helper.py +++ b/packages/abstractions/kiota_abstractions/serialization/parse_node_helper.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Callable, Dict +from typing import TYPE_CHECKING, Callable, Dict, Optional if TYPE_CHECKING: from . import Parsable, ParseNode @@ -10,7 +10,7 @@ class ParseNodeHelper: @staticmethod def merge_deserializers_for_intersection_wrapper( - *targets: Parsable + *targets: Optional[Parsable] ) -> Dict[str, Callable[[ParseNode], None]]: """Merges a collection of parsable field deserializers into a single collection. diff --git a/packages/abstractions/kiota_abstractions/serialization/serialization_writer.py b/packages/abstractions/kiota_abstractions/serialization/serialization_writer.py index c6a0ef5..db0489b 100644 --- a/packages/abstractions/kiota_abstractions/serialization/serialization_writer.py +++ b/packages/abstractions/kiota_abstractions/serialization/serialization_writer.py @@ -158,7 +158,7 @@ def write_bytes_value(self, key: Optional[str], value: Optional[bytes]) -> None: @abstractmethod def write_object_value( - self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[List[U]] + self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[U] ) -> None: """Writes the specified model object to the stream with an optional given key. diff --git a/packages/serialization/form/kiota_serialization_form/form_serialization_writer.py b/packages/serialization/form/kiota_serialization_form/form_serialization_writer.py index dc1d34a..c7dd5dc 100644 --- a/packages/serialization/form/kiota_serialization_form/form_serialization_writer.py +++ b/packages/serialization/form/kiota_serialization_form/form_serialization_writer.py @@ -178,7 +178,7 @@ def write_collection_of_object_values( raise Exception("Form serialization does not support collections.") def write_object_value( - self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[List[U]] + self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[U] ) -> None: """Writes the specified model object to the stream with an optional given key. Args: diff --git a/packages/serialization/json/kiota_serialization_json/json_serialization_writer.py b/packages/serialization/json/kiota_serialization_json/json_serialization_writer.py index 765a608..73453a3 100644 --- a/packages/serialization/json/kiota_serialization_json/json_serialization_writer.py +++ b/packages/serialization/json/kiota_serialization_json/json_serialization_writer.py @@ -293,7 +293,7 @@ def write_bytes_value(self, key: Optional[str], value: Optional[bytes]) -> None: self.value = base64_string def write_object_value( - self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[List[U]] + self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[U] ) -> None: """Writes the specified model object to the stream with an optional given key. Args: diff --git a/packages/serialization/multipart/kiota_serialization_multipart/multipart_serialization_writer.py b/packages/serialization/multipart/kiota_serialization_multipart/multipart_serialization_writer.py index 995ede5..16f3a5c 100644 --- a/packages/serialization/multipart/kiota_serialization_multipart/multipart_serialization_writer.py +++ b/packages/serialization/multipart/kiota_serialization_multipart/multipart_serialization_writer.py @@ -160,7 +160,7 @@ def write_collection_of_object_values( raise NotImplementedError() def write_object_value( - self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[List[U]] + self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[U] ) -> None: """Writes the specified model object to the stream with an optional given key. Args: diff --git a/packages/serialization/text/kiota_serialization_text/text_serialization_writer.py b/packages/serialization/text/kiota_serialization_text/text_serialization_writer.py index 267252d..db7a760 100644 --- a/packages/serialization/text/kiota_serialization_text/text_serialization_writer.py +++ b/packages/serialization/text/kiota_serialization_text/text_serialization_writer.py @@ -159,7 +159,7 @@ def write_bytes_value(self, key: Optional[str], value: Optional[bytes]) -> None: self.write_str_value(key, base64_string) def write_object_value( - self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[List[U]] + self, key: Optional[str], value: Optional[U], *additional_values_to_merge: Optional[U] ) -> None: """Writes the specified model object to the stream with an optional given key. Args: diff --git a/tests/validation/pyproject.toml b/tests/validation/pyproject.toml index 866fd27..0e3d8c9 100644 --- a/tests/validation/pyproject.toml +++ b/tests/validation/pyproject.toml @@ -5,6 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "validation-client" version = "1.3.4" +package-mode = false description = "Core abstractions for kiota generated libraries in Python" authors = ["Microsoft "] license = "MIT"