Skip to content

Commit

Permalink
Fix unresolved import
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 2, 2024
1 parent 544a5d7 commit 72a7ae6
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions neon_utils/skills/neon_fallback_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,9 @@

from neon_utils.skills.neon_skill import NeonSkill

try:
from ovos_workshop.skills.fallback import _MetaFB
except ImportError:
from ovos_workshop.skills.ovos import OVOSSkill

class _MetaFB(OVOSSkill):
"""
Override metaclass for import compat.
"""


class _MutableFallback(type(OVOSSkill)):
""" To override isinstance checks we need to use a metaclass """
class _MutableFallback(type(NeonSkill)):
""" Override for compat. with ovos-workshop until deprecation """

def __instancecheck__(self, instance):
if isinstance(instance, FallbackSkillV1):
Expand Down

0 comments on commit 72a7ae6

Please sign in to comment.