Skip to content

Commit

Permalink
run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyvan committed Mar 12, 2024
1 parent 41af5c5 commit 8a2fe39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ dmypy.json
.devcontainer/

# PyCharm
.idea/
.idea/
9 changes: 6 additions & 3 deletions example_publisher/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ class Provider(ABC):
_update_loop_task = None

@abstractmethod
def upd_products(self, product_symbols: List[Symbol]): ...
def upd_products(self, product_symbols: List[Symbol]):
...

def start(self) -> None:
self._update_loop_task = asyncio.create_task(self._update_loop())

@abstractmethod
async def _update_loop(self): ...
async def _update_loop(self):
...

@abstractmethod
def latest_price(self, symbol: Symbol) -> Optional[Price]: ...
def latest_price(self, symbol: Symbol) -> Optional[Price]:
...

0 comments on commit 8a2fe39

Please sign in to comment.