what's wrong with this function:
def convert(config):
folder = get_files(config)
for file_name in folder:
if file_name.endswith('.csv'):
csv_file = os.path.join(folder, file_name)
base = os.path.splitext(csv_file)[0]
excel_file = f'{base}.xlsx'
wb = Workbook()
ws = wb.active
delimiter = check_delimiter(csv_file)
with open(csv_file, newline='', encoding='utf8') as data:
if delimiter:
reader = csv.reader(data, delimiter=delimiter)
for row in reader:
ws.append(row)
wb.save(excel_file)```
i'm getting this error in pycharm
```Unexpected type(s):(list[str], str)Possible type(s):(LiteralString, LiteralString)(str | PathLike[str], str | PathLike[str])(bytes | PathLike[bytes], bytes | PathLike[bytes])(LiteralString, LiteralString)(str | PathLike[str], str | PathLike[str])(bytes | PathLike[bytes], bytes | PathLike[bytes])```