mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
module 7 finished
This commit is contained in:
15
07/ex4/Rankable.py
Normal file
15
07/ex4/Rankable.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user