Skip to content

Commit

Permalink
Revert change to Plugable to fix Intellisense
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobneiltaylor committed Jul 20, 2020
1 parent b927e83 commit 5e01772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class Plugable(metaclass=PlugableMeta):

@classmethod
def get(cls, name, *args, **kwargs):
return cls.registry.get(name, *args, **kwargs)
instance = cls.registry.get(name, *args, **kwargs)
if isinstance(instance, cls):
return instance


__all__ = [
Expand Down

0 comments on commit 5e01772

Please sign in to comment.