mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 22:10:35 +00:00
chore: Improved types for rich_handler
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from datetime import datetime
|
||||
from logging import Handler
|
||||
from typing import Any
|
||||
|
||||
from rich.console import Console
|
||||
from rich.text import Text
|
||||
|
||||
|
||||
class FtRichHandler(Handler):
|
||||
def __init__(self, console, *args: Any, **kwargs: Any) -> None:
|
||||
def __init__(self, console: Console, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
self._console = console
|
||||
|
||||
|
||||
Reference in New Issue
Block a user