Skip to content

Commit

Permalink
codestyle: fixes core
Browse files Browse the repository at this point in the history
  • Loading branch information
omars44 committed Sep 7, 2023
1 parent 11c052b commit f1e3c00
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions buti/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,14 @@ class Bootloader:
see: examples/
"""

_components: Dict[str, BootableComponent] = {}

def __init__(self, components: Optional[List[BootableComponent]] = None, buti_store: Optional[ButiStore] = None) -> None:
def __init__(
self,
components: Optional[List[BootableComponent]] = None,
buti_store: Optional[ButiStore] = None,
) -> None:
if components is None:
components = []
self.buti_store = buti_store if buti_store is not None else ButiStore()
Expand Down Expand Up @@ -94,7 +99,7 @@ class AsyncBootableComponent(ABC):
"""
same as BootableComponent, see above
"""

@abstractmethod
async def boot(self, boot_image: ButiStore) -> None:
raise NotImplementedError("Component not implemented")
Expand All @@ -107,9 +112,14 @@ class AsyncBootloader:
"""
Same as Bootloader, see above
"""

_components: Dict[str, AsyncBootableComponent] = {}

def __init__(self, components: Optional[List[AsyncBootableComponent]] = None, buti_store: Optional[ButiStore] = None) -> None:
def __init__(
self,
components: Optional[List[AsyncBootableComponent]] = None,
buti_store: Optional[ButiStore] = None,
) -> None:
if components is None:
components = []
self.buti_store = buti_store if buti_store is not None else ButiStore()
Expand Down

0 comments on commit f1e3c00

Please sign in to comment.