diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-10-13 07:24:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 07:24:07 -0400 |
commit | 1f9d0b8a7a6a777d59fe3217724f3e2ddb94a9b2 (patch) | |
tree | 194112442fecf38e0b54cc6844c93f64c2dfefb6 /synapse/events/builder.py | |
parent | Port the Password Auth Providers module interface to the new generic interfac... (diff) | |
download | synapse-1f9d0b8a7a6a777d59fe3217724f3e2ddb94a9b2.tar.xz |
Add type hints to synapse.events.*. (#11066)
Except `synapse/events/__init__.py`, which will be done in a follow-up.
Diffstat (limited to 'synapse/events/builder.py')
-rw-r--r-- | synapse/events/builder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/events/builder.py b/synapse/events/builder.py index 50f2a4c1f4..4f409f31e1 100644 --- a/synapse/events/builder.py +++ b/synapse/events/builder.py @@ -90,13 +90,13 @@ class EventBuilder: ) @property - def state_key(self): + def state_key(self) -> str: if self._state_key is not None: return self._state_key raise AttributeError("state_key") - def is_state(self): + def is_state(self) -> bool: return self._state_key is not None async def build( |