added type hint for pycharm

This commit is contained in:
Faraphel 2022-07-19 22:36:25 +02:00
parent 83f19324bf
commit 19ded49c27
4 changed files with 14 additions and 2 deletions

View file

@ -2,6 +2,9 @@
from PIL import Image, ImageDraw, ImageFont
ModConfig: any
class Cup:
__slots__ = ["_tracks", "cup_name", "cup_id"]
_last_cup_id = 0

View file

@ -9,6 +9,9 @@ from source.wt import szs, lec
from source.wt.wstrt import StrPath
Game: any
class ExtractedGame:
"""
Class that represents an extracted game

View file

@ -1,8 +1,10 @@
from typing import Generator
import re
from source.mkw import Tag, Slot
from source.safe_eval import safe_eval, multiple_safe_eval
from source.safe_eval import multiple_safe_eval
ModConfig: any
# representation of a custom track

View file

@ -3,6 +3,10 @@ from typing import Generator
from source.mkw import Tag
Track: any
ModConfig: any
class TrackGroup:
def __init__(self, tracks: list["Track"] = None, tags: list[Tag] = None, name: str = None):
self.tracks = tracks if tracks is not None else []