Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Oct 19, 2023
1 parent b6de4df commit 9a60d03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions scripts/py_matter_idl/matter_idl/generators/idl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
# limitations under the License.

import os
from typing import List, Union
from typing import Union

from matter_idl.generators import CodeGenerator, GeneratorStorage
from matter_idl.matter_idl_types import (AccessPrivilege, ApiMaturity, Attribute, AttributeQuality, AttributeStorage, Cluster,
ClusterSide, Command, CommandQuality, Event, EventPriority, EventQuality, FieldQuality,
Idl, Struct, StructQuality, StructTag)
from matter_idl.matter_idl_types import (AccessPrivilege, ApiMaturity, Attribute, AttributeQuality, AttributeStorage, ClusterSide,
Command, CommandQuality, Event, EventPriority, EventQuality, FieldQuality, Idl,
StructQuality, StructTag)


def human_text_string(value: Union[ClusterSide, StructTag, StructQuality, EventPriority, EventQuality, AccessPrivilege, AttributeQuality, CommandQuality, ApiMaturity, AttributeStorage]) -> str:
Expand Down
5 changes: 1 addition & 4 deletions scripts/py_matter_idl/matter_idl/test_idl_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
import os
import sys
import unittest
from dataclasses import dataclass, field
from typing import List

import yaml
from typing import Optional

try:
from matter_idl.matter_idl_parser import CreateParser
Expand Down
1 change: 1 addition & 0 deletions scripts/py_matter_idl/matter_idl/xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import logging
import os
from typing import Optional

try:
from matter_idl.zapxml import ParseSource, ParseXmls
Expand Down

0 comments on commit 9a60d03

Please sign in to comment.