update lint error

This commit is contained in:
evonneng committed 2022-05-11 00:09:33 +00:00
1 parent a9b069775f
commit 98a74c67de
1 file changed
+3 -7
+3 -7
View File
@@ -4,7 +4,7 @@ Profiler base class and functionality
import logging import logging
import sys import sys
import time import time
from typing import Callable, Dict from typing import Callable
from omegaconf import DictConfig from omegaconf import DictConfig
@@ -32,12 +32,8 @@ def time_function(func: Callable) -> Callable:
return wrapper return wrapper
def flush_profiler(config: Dict): def flush_profiler(config: DictConfig):
"""Method that checks if profiler is enabled before flushing """Method that checks if profiler is enabled before flushing"""
Args:
config (Dict): config check
"""
if config.enable_profiler and PROFILER: if config.enable_profiler and PROFILER:
PROFILER[0].print_profile() PROFILER[0].print_profile()