feat: add cython typing for ServiceInterface.name (#248)

This commit is contained in:
J. Nick Koston 2023-09-11 19:04:38 -05:00 committed by GitHub
parent 16b31f91e5
commit 98c7e75375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ cdef class _Method:
cdef class ServiceInterface:
cdef public object name
cdef public str name
cdef list __methods
cdef list __properties
cdef list __signals

View File

@ -343,7 +343,7 @@ class ServiceInterface:
:vartype name: str
"""
def __init__(self, name: str):
def __init__(self, name: str) -> None:
# TODO cannot be overridden by a dbus member
self.name = name
self.__methods: List[_Method] = []