Skip to content

Commit

Permalink
Append 'Interface' to generated interface classes
Browse files Browse the repository at this point in the history
  • Loading branch information
igo95862 committed Mar 2, 2021
1 parent 1417dc0 commit efe0a73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sdbus/interface_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ def __init__(self, element: Element):
raise ValueError(f"Expected interface tag, got {element.tag}")

self.interface_name = element.attrib['name']
self.python_name = interface_name_to_class(self.interface_name)
self.python_name = interface_name_to_class(
self.interface_name) + 'Interface'

self.is_deprecated = False
self.c_name: Optional[str] = None
Expand Down

0 comments on commit efe0a73

Please sign in to comment.