Skip to content

Commit

Permalink
Unexpected type(s):(StringIO, Literal['w'], int, bool)Possible type(s…
Browse files Browse the repository at this point in the history
…):(str | PathLike[str] | IO[bytes], Literal["r", "w", "x", "a"], int, bool)(str | PathLike[str] | IO[bytes], Literal["r", "w", "x", "a"], int, bool)(str | PathLike[str] | IO[bytes], Literal["r", "w", "x", "a"], int, bool)
  • Loading branch information
Furtif committed Jun 12, 2023
1 parent 904b6f0 commit 73ee45d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ecu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import argparse
import glob
import io
import math
import os
import re
Expand Down Expand Up @@ -1784,7 +1785,7 @@ def check_ecu2(self, diagversion, supplier, soft, version, label, addr, protocol

def make_zipfs():
options.ecus_dir = "./ecus"
zipoutput = StringIO()
zipoutput = BytesIO()
i = 0
ecus = glob.glob("ecus/*.xml")
ecus.remove("ecus/eculist.xml")
Expand All @@ -1805,7 +1806,7 @@ def make_zipfs():
# if i == 15:
# break

with open("json/ecus.zip", "w") as f:
with open("json/ecus.zip", "wb") as f:
f.write(zipoutput.getvalue())


Expand Down

0 comments on commit 73ee45d

Please sign in to comment.