File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
flatpak_indexer/datasource Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1+ from abc import ABC , abstractmethod
12from typing import Dict , List
23
34from ..config import Config
45from ..models import RegistryModel
56
67
7- class Updater :
8- def __init__ ( self , config : Config ):
9- raise NotImplementedError ()
8+ class Updater ( ABC ) :
9+ @ abstractmethod
10+ def __init__ ( self , config : Config ): ...
1011
11- def start ( self ):
12- raise NotImplementedError ()
12+ @ abstractmethod
13+ def start ( self ) -> None : ...
1314
14- def update ( self , registry_data : Dict [ str , RegistryModel ]):
15- raise NotImplementedError ()
15+ @ abstractmethod
16+ def update ( self , registry_data : Dict [ str , RegistryModel ]) -> None : ...
1617
17- def stop ( self ):
18- raise NotImplementedError ()
18+ @ abstractmethod
19+ def stop ( self ) -> None : ...
1920
2021
2122def load_updaters (config ) -> List [Updater ]:
You can’t perform that action at this time.
0 commit comments