mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-05 04:08:21 +02:00
added type hint for pycharm
This commit is contained in:
parent
83f19324bf
commit
19ded49c27
4 changed files with 14 additions and 2 deletions
|
@ -2,6 +2,9 @@
|
|||
from PIL import Image, ImageDraw, ImageFont
|
||||
|
||||
|
||||
ModConfig: any
|
||||
|
||||
|
||||
class Cup:
|
||||
__slots__ = ["_tracks", "cup_name", "cup_id"]
|
||||
_last_cup_id = 0
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 []
|
||||
|
|
Loading…
Reference in a new issue