Skip to content

Commit

Permalink
Make type checker happy at places
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Oct 26, 2023
1 parent adfaee9 commit f7507e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/py_matter_idl/matter_idl/matter_idl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ def command_with_access(self, args):
# NOTE: awkward inline because the order of 'meta, children' vs 'children, meta' was flipped
# between lark versions in https://github.com/lark-parser/lark/pull/993
@v_args(meta=True, inline=True)
def command(self, meta, *args):
def command(self, meta, *tuple_args):
# The command takes 4 arguments if no input argument, 5 if input
# argument is provided
args = list(args) # convert from tuple
args = list(tuple_args) # convert from tuple
if len(args) != 5:
args.insert(2, None)

Expand Down
2 changes: 1 addition & 1 deletion scripts/py_matter_idl/matter_idl/test_data_model_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import io
import unittest
from difflib import unified_diff
from typing import List, Union
from typing import List, Union, Optional

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

0 comments on commit f7507e4

Please sign in to comment.