未验证 提交 ab47a985 编写于 作者: M mjxs 提交者: GitHub

[CodeStyle][UP006] use list instead of List for type annotations; (#52061)

* use list instead of List for type annotations

* delete import of List
上级 ad452171
......@@ -54,6 +54,7 @@ select = [
"UP003",
"UP004",
"UP005",
"UP006",
"UP007",
"UP008",
"UP009",
......
......@@ -24,7 +24,7 @@ import warnings
from collections import OrderedDict
import inspect
import threading
from typing import Any, List
from typing import Any
import paddle
from paddle.fluid import core, dygraph
......@@ -191,7 +191,7 @@ def copy_decorator_attrs(original_func, decorated_obj):
return decorated_obj
def ignore_module(modules: List[Any]):
def ignore_module(modules: list[Any]):
"""
Adds modules that ignore transcription.
Builtin modules that have been ignored are collections, pdb, copy, inspect, re, numpy, logging, six
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册