mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Core: Log the worlds still using the old options API (#2707)
This commit is contained in:
@@ -79,8 +79,8 @@ class AutoWorldRegister(type):
|
|||||||
if "options_dataclass" not in dct and "option_definitions" in dct:
|
if "options_dataclass" not in dct and "option_definitions" in dct:
|
||||||
# TODO - switch to deprecate after a version
|
# TODO - switch to deprecate after a version
|
||||||
if __debug__:
|
if __debug__:
|
||||||
from warnings import warn
|
logging.warning(f"{name} Assigned options through option_definitions which is now deprecated. "
|
||||||
warn("Assigning options through option_definitions is now deprecated. Use options_dataclass instead.")
|
"Please use options_dataclass instead.")
|
||||||
dct["options_dataclass"] = make_dataclass(f"{name}Options", dct["option_definitions"].items(),
|
dct["options_dataclass"] = make_dataclass(f"{name}Options", dct["option_definitions"].items(),
|
||||||
bases=(PerGameCommonOptions,))
|
bases=(PerGameCommonOptions,))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user