Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Mark EventSource as an ABC
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Feb 15, 2023
1 parent f351967 commit 29dd442
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions synapse/streams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from abc import ABC, abstractmethod
from typing import Generic, List, Optional, Tuple, TypeVar

from synapse.types import StrCollection, UserID
Expand All @@ -22,7 +22,8 @@
R = TypeVar("R")


class EventSource(Generic[K, R]):
class EventSource(ABC, Generic[K, R]):
@abstractmethod
async def get_new_events(
self,
user: UserID,
Expand Down

0 comments on commit 29dd442

Please sign in to comment.