Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PrVrSs committed Nov 21, 2023
1 parent 1a59327 commit 6fc88be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion idl2js/idl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def make_idl_type(definition):
case DefinitionEnum.DICTIONARY:
return DictionaryVisitor().run(node=definition)
case DefinitionEnum.NAMESPACE:
logger.warning(f'Not implemented {DefinitionEnum.NAMESPACE}')
logger.warning('Not implemented %s', DefinitionEnum.NAMESPACE)
return None
case _:
raise UnknownDefinitionType(f'Unknown {definition.type=}')
4 changes: 2 additions & 2 deletions idl2js/idl/definitions/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def handle_type(idl_type: Type):
return value, TypeFlag.OPTIONAL
case IDLType(value):
return value, TypeFlag.NONE
case IDLUnion(_):
raise IDL2JSException
case IDLUnion(items):
return items[0], TypeFlag.SEQUENCE
case _:
raise IDL2JSException

Expand Down

0 comments on commit 6fc88be

Please sign in to comment.