Skip to content

Commit 3187a9c

Browse files
authored
[Docathon][CodeStyle Fix No.10] enable UP004 rule (#6259)
1 parent 988696c commit 3187a9c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ci_scripts/CAPItools/utils_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# __init__ 初始化函数,调用decode
88
# decode 用于解析CppHeaderParser的解析信息
99
# create_and_write_file 根据指定的语言类型,在指定目录生成对应的文档
10-
class func_helper(object):
10+
class func_helper:
1111
def __init__(self, function_dict, cpp2py_api_list):
1212
super().__init__()
1313
self.function_dict = function_dict
@@ -180,7 +180,7 @@ def create_and_write_file_en(self, save_dir, language):
180180
# __init__ 初始化函数,调用decode
181181
# decode 用于解析CppHeaderParser的解析信息
182182
# create_and_write_file 根据指定的语言类型,在指定目录生成对应的文档
183-
class class_helper(object):
183+
class class_helper:
184184
def __init__(self, class_dict):
185185
super().__init__()
186186
self.class_dict = class_dict

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ ignore = [
8484
"PLR1722",
8585
"C403",
8686
"C405",
87-
"UP004",
8887
"C414",
8988
"C416",
9089
"C419",

0 commit comments

Comments
 (0)