chore: reformatted all files

This commit is contained in:
2020-02-03 19:46:41 +01:00
parent ca78b6a6fd
commit 4ed2215c3f
6 changed files with 7 additions and 9 deletions

View File

@@ -1,5 +1,4 @@
import logging
from typing import BinaryIO, IO, Union
from .unpacker import Unpacker

View File

@@ -2,7 +2,7 @@ import collections
import enum
import logging
import struct
from typing import Dict, List, Optional, Union, Tuple
from typing import Dict, List, Optional, Tuple, Union
from pjvm.unpacker import Unpacker
from .classloader import ClassLoader

View File

@@ -1,8 +1,8 @@
from logging import getLogger
from typing import Callable, Dict, List, Optional, Tuple, Union, TYPE_CHECKING
from typing import Callable, Dict, List, Optional, TYPE_CHECKING, Tuple, Union
from . import utils
from .exceptions import PJVMTypeError, PJVMNotImplemented
from .exceptions import PJVMNotImplemented, PJVMTypeError
from .old_jtypes import JInteger, JObj, JString
from .stackframe import Frame

View File

@@ -1,7 +1,7 @@
import struct
from typing import List
from .clazz import Class, Method, Code
from .clazz import Class, Code, Method
from .exceptions import PJVMException
from .old_jtypes import JObj

View File

@@ -1,6 +1,6 @@
from io import BytesIO
from struct import unpack, calcsize
from typing import Dict, BinaryIO
from struct import calcsize, unpack
from typing import BinaryIO, Dict
class Unpacker:

View File

@@ -1,7 +1,6 @@
from typing import List
import re
re_types = re.compile('([BCDFIJSZV]|L(?:[a-zA-Z0-9_]+/)+[a-zA-Z0-9_]+;)')
re_method_sig = re.compile(fr"\(({re_types.pattern}*)\){re_types.pattern}")