1
0
mirror of synced 2025-01-18 22:24:04 +01:00

Fix some lint and typing issues uncovered by mypy/flake8 upgrades.

This commit is contained in:
Jennifer Taylor 2020-11-11 05:14:36 +00:00
parent ffa70e372b
commit a5966a6382
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import random
import time
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Optional, cast
from bemani.client.base import BaseClient
from bemani.protocol import Node
@ -729,7 +729,7 @@ class ReflecBeatGroovinUpper(BaseClient):
'time': 54321,
},
],
key=lambda ep: ep['id'],
key=lambda ep: cast(int, ep['id']),
)
self.verify_player_rb4write(ref_id, location, episodes=dummyepisodes)
episodes = sorted(

View File

@ -257,7 +257,7 @@ def navigation() -> Dict[str, Any]:
'components': components,
'any': jinja2_any,
}
pages = []
pages: List[Dict[str, Any]] = []
# Landing page
pages.append(

View File

@ -641,9 +641,9 @@ class AFPFile:
vprint("Bit 0x000010 - regionmapping; NOT PRESENT")
if feature_mask & 0x20:
vprint(f"Bit 0x000020 - text obfuscation on")
vprint("Bit 0x000020 - text obfuscation on")
else:
vprint(f"Bit 0x000020 - text obfuscation off")
vprint("Bit 0x000020 - text obfuscation off")
if feature_mask & 0x40:
# Two unknown bytes, first is a length or a count. Secound is