mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-23 02:11:10 +00:00
11 lines
223 B
Python
11 lines
223 B
Python
from abc import abstractmethod
|
|
from typing import TypeVar, Generic
|
|
|
|
T = TypeVar("T")
|
|
|
|
|
|
class Saver(Generic[T]):
|
|
@abstractmethod
|
|
def save(self, t: T) -> T:
|
|
raise Exception("Interface member not implemented")
|