Skip to content

Commit 8b8d188

Browse files
author
GuangChen2333
committed
refactor(pack): rename to packet
1 parent 386e5c8 commit 8b8d188

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pip install structovo
2222
from structovo import *
2323

2424

25-
class PackA(Pack):
25+
class PackA(Packet):
2626
a: PADDING
2727
b: BYTE = b'A'
2828
c: CHAR = -1

src/structovo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ._pack import Pack
1+
from ._packet import Packet
22

33
from ._types import *
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
T = TypeVar('T', bound='Pack')
66

77

8-
class Pack:
8+
class Packet:
99
@classmethod
1010
def build(cls, endianness: Optional[Endianness] = Endianness.NATIVE) -> bytes:
1111
anns = cls.__annotations__

0 commit comments

Comments
 (0)