mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
16 lines
330 B
Python
16 lines
330 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Rankable(ABC):
|
|
@abstractmethod
|
|
def calculate_rating(self) -> int: ...
|
|
|
|
@abstractmethod
|
|
def update_wins(self, wins: int) -> None: ...
|
|
|
|
@abstractmethod
|
|
def update_losses(self, losses: int) -> None: ...
|
|
|
|
@abstractmethod
|
|
def get_rank_info(self) -> dict: ...
|