X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=pymeshio%2Fcommon.py;h=698b5f964946c207dc894bfb81b20f5ffb6b2e2b;hb=a678c04bd9942eb915a1d07caac747ef5d0f8556;hp=e67580d661891c4c9e661a9474d58f2958964f3e;hpb=cf6a57e413e260b09d373c9a499512f8fbcdce0c;p=meshio%2Fpymeshio.git diff --git a/pymeshio/common.py b/pymeshio/common.py index e67580d..698b5f9 100644 --- a/pymeshio/common.py +++ b/pymeshio/common.py @@ -225,7 +225,7 @@ class ParseException(Exception): pass -def readall(path: str) -> bytes: +def readall(path): with open(path, "rb") as f: return f.read() @@ -234,7 +234,7 @@ class BinaryLoader(object): def __init__(self, io): self.io=io - def unpack(self, fmt: str, size: int) -> "read value as format": + def unpack(self, fmt, size): result=struct.unpack(fmt, self.io.read(size)) return result[0]