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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user