99class BugCheckError :
1010 def UnkObjectDataType (objectType : type ):
1111 assert objectType is not None
12- assert type (objectType ) == type
12+ assert type (objectType ) == type # noqa: E721
1313
1414 errMsg = "[BUG CHECK] Unknown object data type [{0}]." .format (objectType )
1515 raise Exception (errMsg )
1616
1717 # --------------------------------------------------------------------
1818 def MultipleDefOfOptionIsFound (optName : str , count : int ):
19- assert type (optName ) == str
20- assert type (count ) == int
19+ assert type (optName ) == str # noqa: E721
20+ assert type (count ) == int # noqa: E721
2121
2222 errMsg = (
2323 "[BUG CHECK] Multiple definitition of option [{0}] is found - {1}." .format (
@@ -28,8 +28,8 @@ def MultipleDefOfOptionIsFound(optName: str, count: int):
2828
2929 # --------------------------------------------------------------------
3030 def UnkOptObjectDataType (optName : str , optDataType : type ):
31- assert type (optName ) == str
32- assert type (optDataType ) == type
31+ assert type (optName ) == str # noqa: E721
32+ assert type (optDataType ) == type # noqa: E721
3333
3434 errMsg = (
3535 "[BUG CHECK] Unknown type of the option object data [{0}] - {1}." .format (
@@ -40,8 +40,8 @@ def UnkOptObjectDataType(optName: str, optDataType: type):
4040
4141 # --------------------------------------------------------------------
4242 def MultipleDefOfFileIsFound (fileName : str , count : int ):
43- assert type (fileName ) == str
44- assert type (count ) == int
43+ assert type (fileName ) == str # noqa: E721
44+ assert type (count ) == int # noqa: E721
4545
4646 errMsg = (
4747 "[BUG CHECK] Multiple definitition of file [{0}] is found - {1}." .format (
@@ -52,8 +52,8 @@ def MultipleDefOfFileIsFound(fileName: str, count: int):
5252
5353 # --------------------------------------------------------------------
5454 def UnkFileObjectDataType (fileName : str , fileDataType : type ):
55- assert type (fileName ) == str
56- assert type (fileDataType ) == type
55+ assert type (fileName ) == str # noqa: E721
56+ assert type (fileDataType ) == type # noqa: E721
5757
5858 errMsg = "[BUG CHECK] Unknown type of the file object data [{0}] - {1}." .format (
5959 fileName , fileDataType .__name__
@@ -62,7 +62,7 @@ def UnkFileObjectDataType(fileName: str, fileDataType: type):
6262
6363 # --------------------------------------------------------------------
6464 def UnkFileDataStatus (filePath : str , fileStatus : any ):
65- assert type (filePath ) == str
65+ assert type (filePath ) == str # noqa: E721
6666 assert fileStatus is not None
6767
6868 errMsg = "[BUG CHECK] Unknown file data status [{0}] - {1}." .format (
@@ -72,8 +72,8 @@ def UnkFileDataStatus(filePath: str, fileStatus: any):
7272
7373 # --------------------------------------------------------------------
7474 def FileIsNotFoundInIndex (fileKey : str , filePath : str ):
75- assert type (fileKey ) == str
76- assert type (filePath ) == str
75+ assert type (fileKey ) == str # noqa: E721
76+ assert type (filePath ) == str # noqa: E721
7777
7878 errMsg = "[BUG CHECK] File [{0}][{1}] is not found in index." .format (
7979 fileKey , filePath
@@ -82,14 +82,14 @@ def FileIsNotFoundInIndex(fileKey: str, filePath: str):
8282
8383 # --------------------------------------------------------------------
8484 def OptionIsNotFoundInIndex (optName : str ):
85- assert type (optName ) == str
85+ assert type (optName ) == str # noqa: E721
8686
8787 errMsg = "[BUG CHECK] Option [{0}] is not found in index." .format (optName )
8888 raise Exception (errMsg )
8989
9090 # --------------------------------------------------------------------
9191 def OptionIsNotFoundInFileLine (optName : str ):
92- assert type (optName ) == str
92+ assert type (optName ) == str # noqa: E721
9393
9494 errMsg = "[BUG CHECK] Option [{0}] is not found in file line." .format (optName )
9595 raise Exception (errMsg )
@@ -111,7 +111,7 @@ def FileLineIsNotFoundInFile():
111111
112112 # --------------------------------------------------------------------
113113 def OptionHandlerToPrepareSetValueIsNotDefined (name : str ):
114- assert type (name ) == str
114+ assert type (name ) == str # noqa: E721
115115
116116 errMsg = "[BUG CHECK] OptionHandlerToPrepareSetValue for [{0}] is not defined." .format (
117117 name
@@ -120,7 +120,7 @@ def OptionHandlerToPrepareSetValueIsNotDefined(name: str):
120120
121121 # --------------------------------------------------------------------
122122 def OptionHandlerToPrepareGetValueIsNotDefined (name : str ):
123- assert type (name ) == str
123+ assert type (name ) == str # noqa: E721
124124
125125 errMsg = "[BUG CHECK] OptionHandlerToPrepareGetValue for [{0}] is not defined." .format (
126126 name
@@ -129,7 +129,7 @@ def OptionHandlerToPrepareGetValueIsNotDefined(name: str):
129129
130130 # --------------------------------------------------------------------
131131 def OptionHandlerToPrepareSetValueItemIsNotDefined (name : str ):
132- assert type (name ) == str
132+ assert type (name ) == str # noqa: E721
133133
134134 errMsg = "[BUG CHECK] OptionHandlerToPrepareSetValueItem for [{0}] is not defined." .format (
135135 name
@@ -138,7 +138,7 @@ def OptionHandlerToPrepareSetValueItemIsNotDefined(name: str):
138138
139139 # --------------------------------------------------------------------
140140 def OptionHandlerToSetValueIsNotDefined (name : str ):
141- assert type (name ) == str
141+ assert type (name ) == str # noqa: E721
142142
143143 errMsg = "[BUG CHECK] OptionHandlerToSetValue for [{0}] is not defined." .format (
144144 name
@@ -147,7 +147,7 @@ def OptionHandlerToSetValueIsNotDefined(name: str):
147147
148148 # --------------------------------------------------------------------
149149 def OptionHandlerToGetValueIsNotDefined (name : str ):
150- assert type (name ) == str
150+ assert type (name ) == str # noqa: E721
151151
152152 errMsg = "[BUG CHECK] OptionHandlerToGetValue for [{0}] is not defined." .format (
153153 name
@@ -156,7 +156,7 @@ def OptionHandlerToGetValueIsNotDefined(name: str):
156156
157157 # --------------------------------------------------------------------
158158 def OptionHandlerToAddOptionIsNotDefined (name : str ):
159- assert type (name ) == str
159+ assert type (name ) == str # noqa: E721
160160
161161 errMsg = (
162162 "[BUG CHECK] OptionHandlerToAddOption for [{0}] is not defined." .format (
@@ -167,7 +167,7 @@ def OptionHandlerToAddOptionIsNotDefined(name: str):
167167
168168 # --------------------------------------------------------------------
169169 def OptionHandlerToSetValueItemIsNotDefined (name : str ):
170- assert type (name ) == str
170+ assert type (name ) == str # noqa: E721
171171
172172 errMsg = (
173173 "[BUG CHECK] OptionHandlerToSetValueItem for [{0}] is not defined." .format (
@@ -178,7 +178,7 @@ def OptionHandlerToSetValueItemIsNotDefined(name: str):
178178
179179 # --------------------------------------------------------------------
180180 def OptionHandlerToWriteIsNotDefined (name : str ):
181- assert type (name ) == str
181+ assert type (name ) == str # noqa: E721
182182
183183 errMsg = "[BUG CHECK] OptionHandlerToWrite for [{0}] is not defined." .format (
184184 name
@@ -187,9 +187,9 @@ def OptionHandlerToWriteIsNotDefined(name: str):
187187
188188 # --------------------------------------------------------------------
189189 def UnexpectedSituation (bugcheckSrc : str , bugcheckPoint : str , explain : str ):
190- assert type (bugcheckSrc ) == str
191- assert type (bugcheckPoint ) == str
192- assert explain is None or type (explain ) == str
190+ assert type (bugcheckSrc ) == str # noqa: E721
191+ assert type (bugcheckPoint ) == str # noqa: E721
192+ assert explain is None or type (explain ) == str # noqa: E721
193193
194194 errMsg = "[BUG CHECK] Unexpected situation in [{0}][{1}]." .format (
195195 bugcheckSrc , bugcheckPoint
@@ -205,9 +205,9 @@ def UnexpectedSituation(bugcheckSrc: str, bugcheckPoint: str, explain: str):
205205
206206 # --------------------------------------------------------------------
207207 def UnknownOptionValueType (optionName : str , typeOfOptionValue : type ):
208- assert type (optionName ) == str
208+ assert type (optionName ) == str # noqa: E721
209209 assert optionName != ""
210- assert type (typeOfOptionValue ) == type
210+ assert type (typeOfOptionValue ) == type # noqa: E721
211211
212212 errMsg = "[BUG CHECK] Unknown value type [{1}] of option [{0}]." .format (
213213 optionName , typeOfOptionValue .__name__
0 commit comments