mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Switch metaclass initialization to python 3-compatible syntax (#8326)
This commit is contained in:
parent
44dec6cbc4
commit
a3f124b821
8 changed files with 16 additions and 26 deletions
|
@ -33,7 +33,7 @@ from synapse.util.stringutils import random_string
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ReplicationEndpoint:
|
||||
class ReplicationEndpoint(metaclass=abc.ABCMeta):
|
||||
"""Helper base class for defining new replication HTTP endpoints.
|
||||
|
||||
This creates an endpoint under `/_synapse/replication/:NAME/:PATH_ARGS..`
|
||||
|
@ -72,8 +72,6 @@ class ReplicationEndpoint:
|
|||
is received.
|
||||
"""
|
||||
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
NAME = abc.abstractproperty() # type: str # type: ignore
|
||||
PATH_ARGS = abc.abstractproperty() # type: Tuple[str, ...] # type: ignore
|
||||
METHOD = "POST"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue