Skip to content

Commit

Permalink
cleanup superfluous imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Jan 13, 2025
1 parent 703a1c4 commit 944377b
Show file tree
Hide file tree
Showing 24 changed files with 1 addition and 73 deletions.
2 changes: 1 addition & 1 deletion tests/validation/validation/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"descriptionHash": "3DC72B5983908CB42E339F1D48A1BC8C0AE0770120FA8B34C3720F9542528E5E8658FF0D371EAFFFB66493724EEFC1D12FB138D0DF1F63D8AA202485F8A3F5E4",
"descriptionLocation": "https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/dev/openApiDocs/v1.0/Mail.yml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.22.0",
"kiotaVersion": "1.23.0",
"clientClassName": "ValidationClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "validation",
Expand Down
2 changes: 0 additions & 2 deletions tests/validation/validation/models/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity

writer.write_str_value("contentType", self.content_type)
writer.write_bool_value("isInline", self.is_inline)
writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .attachment import Attachment

writer.write_str_value("@odata.nextLink", self.odata_next_link)
writer.write_collection_of_object_values("value", self.value)
writer.write_additional_data_value(self.additional_data)
Expand Down
2 changes: 0 additions & 2 deletions tests/validation/validation/models/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,5 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity



Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .extension import Extension

writer.write_str_value("@odata.nextLink", self.odata_next_link)
writer.write_collection_of_object_values("value", self.value)
writer.write_additional_data_value(self.additional_data)
Expand Down
3 changes: 0 additions & 3 deletions tests/validation/validation/models/followup_flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .date_time_time_zone import DateTimeTimeZone
from .followup_flag_status import FollowupFlagStatus

writer.write_object_value("completedDateTime", self.completed_date_time)
writer.write_object_value("dueDateTime", self.due_date_time)
writer.write_enum_value("flagStatus", self.flag_status)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity
from .inference_classification_override import InferenceClassificationOverride

writer.write_collection_of_object_values("overrides", self.overrides)


Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .email_address import EmailAddress
from .entity import Entity
from .inference_classification_type import InferenceClassificationType

writer.write_enum_value("classifyAs", self.classify_as)
writer.write_object_value("senderEmailAddress", self.sender_email_address)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .inference_classification_override import InferenceClassificationOverride

writer.write_str_value("@odata.nextLink", self.odata_next_link)
writer.write_collection_of_object_values("value", self.value)
writer.write_additional_data_value(self.additional_data)
Expand Down
2 changes: 0 additions & 2 deletions tests/validation/validation/models/item_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .body_type import BodyType

writer.write_str_value("content", self.content)
writer.write_enum_value("contentType", self.content_type)
writer.write_additional_data_value(self.additional_data)
Expand Down
6 changes: 0 additions & 6 deletions tests/validation/validation/models/mail_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity
from .message import Message
from .message_rule import MessageRule
from .multi_value_legacy_extended_property import MultiValueLegacyExtendedProperty
from .single_value_legacy_extended_property import SingleValueLegacyExtendedProperty

writer.write_int_value("childFolderCount", self.child_folder_count)
writer.write_collection_of_object_values("childFolders", self.child_folders)
writer.write_str_value("displayName", self.display_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .mail_folder import MailFolder

writer.write_str_value("@odata.nextLink", self.odata_next_link)
writer.write_collection_of_object_values("value", self.value)
writer.write_additional_data_value(self.additional_data)
Expand Down
12 changes: 0 additions & 12 deletions tests/validation/validation/models/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .attachment import Attachment
from .extension import Extension
from .followup_flag import FollowupFlag
from .importance import Importance
from .inference_classification_type import InferenceClassificationType
from .internet_message_header import InternetMessageHeader
from .item_body import ItemBody
from .multi_value_legacy_extended_property import MultiValueLegacyExtendedProperty
from .outlook_item import OutlookItem
from .recipient import Recipient
from .single_value_legacy_extended_property import SingleValueLegacyExtendedProperty

writer.write_collection_of_object_values("attachments", self.attachments)
writer.write_collection_of_object_values("bccRecipients", self.bcc_recipients)
writer.write_object_value("body", self.body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .message import Message

writer.write_str_value("@odata.nextLink", self.odata_next_link)
writer.write_collection_of_object_values("value", self.value)
writer.write_additional_data_value(self.additional_data)
Expand Down
4 changes: 0 additions & 4 deletions tests/validation/validation/models/message_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity
from .message_rule_actions import MessageRuleActions
from .message_rule_predicates import MessageRulePredicates

writer.write_object_value("actions", self.actions)
writer.write_object_value("conditions", self.conditions)
writer.write_str_value("displayName", self.display_name)
Expand Down
3 changes: 0 additions & 3 deletions tests/validation/validation/models/message_rule_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .importance import Importance
from .recipient import Recipient

writer.write_collection_of_primitive_values("assignCategories", self.assign_categories)
writer.write_str_value("copyToFolder", self.copy_to_folder)
writer.write_bool_value("delete", self.delete)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .message_rule import MessageRule

writer.write_str_value("@odata.nextLink", self.odata_next_link)
writer.write_collection_of_object_values("value", self.value)
writer.write_additional_data_value(self.additional_data)
Expand Down
6 changes: 0 additions & 6 deletions tests/validation/validation/models/message_rule_predicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .importance import Importance
from .message_action_flag import MessageActionFlag
from .recipient import Recipient
from .sensitivity import Sensitivity
from .size_range import SizeRange

writer.write_collection_of_primitive_values("bodyContains", self.body_contains)
writer.write_collection_of_primitive_values("bodyOrSubjectContains", self.body_or_subject_contains)
writer.write_collection_of_primitive_values("categories", self.categories)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity

writer.write_collection_of_primitive_values("value", self.value)


Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .error_details import ErrorDetails
from .inner_error import InnerError

writer.write_str_value("code", self.code)
writer.write_collection_of_object_values("details", self.details)
writer.write_object_value("innerError", self.inner_error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .main_error import MainError

writer.write_object_value("error", self.error)
writer.write_additional_data_value(self.additional_data)

Expand Down
2 changes: 0 additions & 2 deletions tests/validation/validation/models/outlook_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity

writer.write_collection_of_primitive_values("categories", self.categories)
writer.write_str_value("changeKey", self.change_key)
writer.write_datetime_value("createdDateTime", self.created_date_time)
Expand Down
2 changes: 0 additions & 2 deletions tests/validation/validation/models/recipient.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .email_address import EmailAddress

writer.write_object_value("emailAddress", self.email_address)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ def serialize(self,writer: SerializationWriter) -> None:
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
from .entity import Entity

writer.write_str_value("value", self.value)


0 comments on commit 944377b

Please sign in to comment.