1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-09 14:00:55 +08:00

Fix CI pylint bug (#1270)

* Fix CI pylint bug

* Update log.py
This commit is contained in:
you-n-g
2022-08-30 08:53:57 +08:00
committed by GitHub
parent 157ef529bb
commit dffaeaf07b
2 changed files with 4 additions and 4 deletions

View File

@@ -15,9 +15,9 @@ from .config import C
class MetaLogger(type):
def __new__(mcs, name, bases, attrs): # pylint: disable=C0204
wrapper_dict = logging.Logger.__dict__.copy()
for key in wrapper_dict:
for key, val in wrapper_dict.items():
if key not in attrs and key != "__reduce__":
attrs[key] = wrapper_dict[key]
attrs[key] = val
return type.__new__(mcs, name, bases, attrs)