1
0

Denote HomeServer.DATASTORE_CLASS as an abstract property the Python 3 way

This seems to be required to make mypy happy about using it in inheriting classes
This commit is contained in:
Andrew Morgan
2021-11-15 23:58:13 +00:00
parent 74302bc097
commit 95f71fb7c9

View File

@@ -224,7 +224,10 @@ class HomeServer(metaclass=abc.ABCMeta):
# This is overridden in derived application classes
# (such as synapse.app.homeserver.SynapseHomeServer) and gives the class to be
# instantiated during setup() for future return by get_datastore()
DATASTORE_CLASS = abc.abstractproperty()
@property
@abc.abstractmethod
def DATASTORE_CLASS(self):
pass
tls_server_context_factory: Optional[IOpenSSLContextFactory]