flake8 / pylint updates

This commit is contained in:
Gokul Mohanarangan
2023-07-26 11:28:14 +05:30
parent c970fc89dd
commit e512b4dca5
15 changed files with 279 additions and 146 deletions

View File

@@ -1,3 +1,7 @@
"""
Utility file for server side asynchronous task running and config objects
"""
import asyncio
import configparser
import contextlib
@@ -7,6 +11,9 @@ from typing import ContextManager, Generic, TypeVar
class ReflectorConfig:
"""
Create a single config object to share across the project
"""
__config = None
@staticmethod
@@ -17,7 +24,7 @@ class ReflectorConfig:
return ReflectorConfig.__config
config = ReflectorConfig.get_config()
CONFIG = ReflectorConfig.get_config()
def run_in_executor(func, *args, executor=None, **kwargs):