Skip to content

Commit bb6f0ec

Browse files
committed
Fix mypy errors
Change-Id: I9e716fb77f5d4029e9a227716b1c61e19d0491c5
1 parent b2a76ae commit bb6f0ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

majavahbot/api/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_connection(self) -> pymysql.Connection:
6969
self.db_name,
7070
cluster="analytics",
7171
charset="utf8",
72-
cursorclass=pymysql.cursors.DictCursor,
72+
cursorclass=pymysql.cursors.DictCursor, # type: ignore
7373
)
7474

7575
def get_replag(self):

majavahbot/tasks/task_5_steward_request_bot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ def process_srp_section(self, api: MediawikiApi, section: Wikicode) -> bool:
207207
# so CIDR ranges are checked if they are globally blocked instead of locked
208208
if second.isdigit():
209209
# since some people suggest blocking ranges larger than /16, don't crash
210-
second = int(second)
211-
if second > 16:
210+
if int(second) > 16:
212211
validate_text = first
213212

214213
try:

0 commit comments

Comments
 (0)