chore: fix type for hello message constant (#407)

core: fix type for hello message constant
This commit is contained in:
J. Nick Koston 2025-03-05 22:36:37 -10:00 committed by GitHub
parent ed38f690f5
commit df5325a7ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,13 +29,15 @@ NO_REPLY_EXPECTED_VALUE = MessageFlag.NO_REPLY_EXPECTED.value
def _generate_hello_serialized(next_serial: int) -> bytes:
return Message(
destination="org.freedesktop.DBus",
path="/org/freedesktop/DBus",
interface="org.freedesktop.DBus",
member="Hello",
serial=next_serial,
)._marshall(False)
return bytes(
Message(
destination="org.freedesktop.DBus",
path="/org/freedesktop/DBus",
interface="org.freedesktop.DBus",
member="Hello",
serial=next_serial,
)._marshall(False)
)
HELLO_1_SERIALIZED = _generate_hello_serialized(1)