Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Oct 20, 2023
1 parent 5bf9031 commit 1a1cd35
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import xml.sax.xmlreader
from typing import List, Optional

from matter_idl.matter_idl_types import Attribute, Idl, ParseMetaData
from matter_idl.matter_idl_types import Idl, ParseMetaData


class IdlPostProcessor:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 Project CHIP Authors
# Copyright (c) 2023 Project CHIP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,11 +13,10 @@
# limitations under the License.

import logging
from typing import Any, Optional

from matter_idl.matter_idl_types import (Attribute, AttributeQuality, Bitmap, Cluster, ClusterSide, Command, CommandQuality,
ConstantEntry, DataType, Enum, Event, EventPriority, EventQuality, Field, FieldQuality,
Idl, Struct, StructQuality, StructTag)
from matter_idl.matter_idl_types import (Attribute, AttributeQuality, Bitmap, Cluster, ClusterSide,
ConstantEntry, DataType, Enum, Field, FieldQuality,
Idl, Struct, StructTag)

from .base import BaseHandler, HandledDepth
from .context import Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from typing import Optional

from matter_idl.generators.types import GetDataTypeSizeInBits, IsSignedDataType
from matter_idl.matter_idl_types import (AccessPrivilege, Attribute, AttributeQuality, Command, ConstantEntry, DataType, Event,
EventPriority, Field, FieldQuality)
from matter_idl.matter_idl_types import (AccessPrivilege, Attribute, Command, ConstantEntry, DataType, Event,
EventPriority, Field)

LOGGER = logging.getLogger('data-model-xml-data-parsing')

Expand Down
1 change: 1 addition & 0 deletions scripts/py_matter_idl/matter_idl/data_model_xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import logging
import os
import sys
from typing import Optional

import click

Expand Down
4 changes: 1 addition & 3 deletions scripts/py_matter_idl/matter_idl/test_data_model_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
os.path.join(os.path.dirname(__file__), '..')))
from matter_idl.data_model_xml import ParseSource, ParseXmls

from matter_idl.matter_idl_types import (AccessPrivilege, Attribute, AttributeQuality, Bitmap, Cluster, ClusterSide, Command,
ConstantEntry, DataType, Enum, Event, EventPriority, EventQuality, Field, FieldQuality,
Idl, Struct, StructQuality, StructTag)
from matter_idl.matter_idl_types import Idl
from matter_idl_parser import CreateParser


Expand Down

0 comments on commit 1a1cd35

Please sign in to comment.