mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
docstrings and abstract method
This commit is contained in:
parent
4db75b45e5
commit
b4080ebbe2
2 changed files with 14 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from .base import PypeModule
|
||||
|
||||
__all__ = (
|
||||
|
|
|
|||
|
|
@ -1,10 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Base class for Pype Modules."""
|
||||
from uuid import uuid4
|
||||
from abc import ABC
|
||||
from abc import ABC, abstractmethod
|
||||
from pype.api import Logger
|
||||
|
||||
|
||||
class PypeModule(ABC):
|
||||
"""Base class of pype module."""
|
||||
"""Base class of pype module.
|
||||
|
||||
Attributes:
|
||||
id (UUID): Module id.
|
||||
enabled (bool): Is module enabled.
|
||||
name (str): Module name.
|
||||
"""
|
||||
|
||||
enabled = False
|
||||
name = None
|
||||
_id = None
|
||||
|
|
@ -23,5 +32,7 @@ class PypeModule(ABC):
|
|||
def id(self):
|
||||
return self._id
|
||||
|
||||
@abstractmethod
|
||||
def startup_environments(self):
|
||||
"""Get startup environments for module."""
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue