Skip to content

Commit cb129a5

Browse files
authored
Refactor: add typing in exceptions.py
1 parent 12ba2fa commit cb129a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: pymysqlreplication/exceptions.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
class TableMetadataUnavailableError(Exception):
2-
def __init__(self, table):
2+
def __init__(self, table: str) -> None:
33
Exception.__init__(self,"Unable to find metadata for table {0}".format(table))
44

55

66
class BinLogNotEnabled(Exception):
7-
def __init__(self):
7+
def __init__(self) -> None:
88
Exception.__init__(self, "MySQL binary logging is not enabled.")
99

1010

1111
class StatusVariableMismatch(Exception):
12-
def __init__(self):
13-
Exception.__init__(self, " ".join(
12+
def __init__(self) -> None:
13+
Exception.__init__(self, " ".join([
1414
"Unknown status variable in query event."
1515
, "Possible parse failure in preceding fields"
1616
, "or outdated constants.STATUS_VAR_KEY"
1717
, "Refer to MySQL documentation/source code"
1818
, "or create an issue on GitHub"
19-
))
19+
]))

0 commit comments

Comments
 (0)