mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 13:50:00 +10:00
Set type suggestions for global Constants() usage
This commit is contained in:
@@ -9,10 +9,12 @@ import tempfile
|
||||
import atexit
|
||||
import logging
|
||||
|
||||
from resources import constants
|
||||
|
||||
class RoutePayloadDiskImage:
|
||||
|
||||
def __init__(self, constants):
|
||||
self.constants = constants
|
||||
def __init__(self, global_constants: constants.Constants()):
|
||||
self.constants: constants.Constants() = global_constants
|
||||
|
||||
self._setup_tmp_disk_image()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user