@@ -171,19 +171,19 @@ def __validate_input(self, count: int, max_length: int, random_length: bool, str
171171 :param symbols: Custom symbols to use for generating the strings (applicable only when string_type is set to SYMBOLS or WITH_SYMBOLS).
172172 """
173173 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 )) )
175175
176176 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 )) )
178178
179179 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 )) )
181181
182182 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 )) )
184184
185185 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 )) )
187187
188188 if symbols and not re .match ('[{}]' .format (StringType .SYMBOLS .value ), symbols ):
189189 raise InvalidInputSymbolsException (symbols )
0 commit comments