Skip to content

Commit daa12bd

Browse files
committed
fix: add Type to allowed_events
#79 (comment)
1 parent 59e15c7 commit daa12bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pymysqlreplication/packet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from pymysqlreplication import constants, event, row_event
66

7-
from typing import List, Tuple, Dict, Optional, Union, FrozenSet
7+
from typing import List, Tuple, Dict, Optional, Union, FrozenSet, Type
88
from pymysql.connections import MysqlPacket, Connection
99

1010
# Constants from PyMYSQL source code
@@ -88,7 +88,7 @@ def __init__(self,
8888
ctl_connection: Connection,
8989
mysql_version: Tuple[int, int, int],
9090
use_checksum: bool,
91-
allowed_events: FrozenSet[event.BinLogEvent],
91+
allowed_events: FrozenSet[Type[event.BinLogEvent]],
9292
only_tables: Optional[List[str]],
9393
ignored_tables: Optional[List[str]],
9494
only_schemas: Optional[List[str]],

0 commit comments

Comments
 (0)