@@ -171,19 +171,19 @@ def __validate_input(self, count: int, max_length: int, random_length: bool, str
171
171
:param symbols: Custom symbols to use for generating the strings (applicable only when string_type is set to SYMBOLS or WITH_SYMBOLS).
172
172
"""
173
173
if not isinstance (count , int ):
174
- raise UnsupportedTypeException ('count' , f 'count should be of integer type instead of current { type ( count ) } type' )
174
+ raise UnsupportedTypeException ('count' , 'count should be of integer type instead of current {} type' . format ( type ( count )) )
175
175
176
176
if not isinstance (max_length , int ):
177
- raise UnsupportedTypeException ('max_length' , f 'max_length should be of integer type instead of current { type ( max_length ) } type' )
177
+ raise UnsupportedTypeException ('max_length' , 'max_length should be of integer type instead of current {} type' . format ( type ( max_length )) )
178
178
179
179
if not isinstance (random_length , bool ):
180
- raise UnsupportedTypeException ('random_length' , f 'random_length should be of boolean type instead of current { type ( random_length ) } type' )
180
+ raise UnsupportedTypeException ('random_length' , 'random_length should be of boolean type instead of current {} type' . format ( type ( random_length )) )
181
181
182
182
if not isinstance (string_type , StringType ):
183
- raise UnsupportedTypeException ('string_type' , f 'string_type should be of StringType type instead of current { type ( string_type ) } type' )
183
+ raise UnsupportedTypeException ('string_type' , 'string_type should be of StringType type instead of current {} type' . format ( type ( string_type )) )
184
184
185
185
if symbols and not isinstance (symbols , str ):
186
- raise UnsupportedTypeException ('symbols' , f 'symbols should be either None or of string type instead of current { type ( symbols ) } type' )
186
+ raise UnsupportedTypeException ('symbols' , 'symbols should be either None or of string type instead of current {} type' . format ( type ( symbols )) )
187
187
188
188
if symbols and not re .match ('[{}]' .format (StringType .SYMBOLS .value ), symbols ):
189
189
raise InvalidInputSymbolsException (symbols )
0 commit comments