Skip to content

Commit

Permalink
deprecation warning for MycroftSkill class
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 12, 2023
1 parent 6917a3d commit c0a775f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ovos_workshop/skills/mycroft_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from typing import Optional

from ovos_bus_client import MessageBusClient, Message
from ovos_utils.log import LOG, log_deprecation
from ovos_utils.log import LOG, log_deprecation, deprecated
from ovos_workshop.skills.base import BaseSkill, is_classic_core


Expand Down Expand Up @@ -126,6 +126,7 @@ class MycroftSkill(BaseSkill, metaclass=_SkillMetaclass):
recommended to implement `OVOSSkill` to properly implement new methods.
"""

@deprecated("MycroftSkill class has been deprecated, please subclass from OVOSSkill", "0.1.0")
def __init__(self, name: str = None, bus: MessageBusClient = None,
use_settings: bool = True, *args, **kwargs):
"""
Expand Down

0 comments on commit c0a775f

Please sign in to comment.