mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
use modified meta class for interface _OpenPypeInterfaceMeta
This commit is contained in:
parent
9a66e93b48
commit
9cdacdf397
1 changed files with 9 additions and 1 deletions
|
|
@ -170,7 +170,15 @@ def load_modules(force=False):
|
|||
setattr(openpype_modules, "project_manager_action", project_manager_action)
|
||||
|
||||
|
||||
@six.add_metaclass(ABCMeta)
|
||||
|
||||
|
||||
class _OpenPypeInterfaceMeta(ABCMeta):
|
||||
"""OpenPypeInterface meta class to print proper string."""
|
||||
def __str__(self):
|
||||
return "<'OpenPypeInterface.{}'>".format(self.__name__)
|
||||
|
||||
|
||||
@six.add_metaclass(_OpenPypeInterfaceMeta)
|
||||
class OpenPypeInterface:
|
||||
"""Base class of Interface that can be used as Mixin with abstract parts.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue