Merge branch 'master' into bagatur/locals_in_config

This commit is contained in:
Bagatur 2023-08-09 18:36:44 -07:00
commit 15a5002746

View File

@ -13,7 +13,7 @@ class FileCallbackHandler(BaseCallbackHandler):
self, filename: str, mode: str = "a", color: Optional[str] = None self, filename: str, mode: str = "a", color: Optional[str] = None
) -> None: ) -> None:
"""Initialize callback handler.""" """Initialize callback handler."""
self.file = cast(TextIO, open(filename, mode)) self.file = cast(TextIO, open(filename, mode, encoding="utf-8"))
self.color = color self.color = color
def __del__(self) -> None: def __del__(self) -> None: