platypush/platypush/plugins/inspect/_parsers/_base.py

13 lines
234 B
Python

from abc import ABC, abstractmethod
class Parser(ABC):
"""
Base class for parsers.
"""
@classmethod
@abstractmethod
def parse(cls, docstring: str, obj_type: type) -> str:
raise NotImplementedError()