Skip to content

Commit a5e88cb

Browse files
Clean up multiple logger setup
1 parent a69a661 commit a5e88cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autosklearn/util/logging_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def setup_logger(
5353
setattr(logger, 'initialized', True)
5454

5555

56-
def is_logging_config_applied(logging_config: Dict):
56+
def is_logging_config_applied(logging_config: Dict) -> bool:
5757
"""
5858
This functions check if the provided logging config is already applied to the environment.
5959
if it is not the case, it returns false.
@@ -155,7 +155,7 @@ def __setstate__(self, state: Dict[str, Any]) -> None:
155155
filename=self.filename,
156156
)
157157

158-
def format(self, msg):
158+
def format(self, msg: str) -> str:
159159
return "[{}] {}".format(self.name, msg)
160160

161161
def debug(self, msg: str, *args: Any, **kwargs: Any) -> None:

0 commit comments

Comments
 (0)