code_generation.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:artman 作者: googleapis 项目源码 文件源码
def _get_publish_tasks(self, publish, **kwargs):
        """Dynamically import publisher tasks based on the selected publisher.

        This will raise ImportError if the publisher does not have a module
        in `pipeline.tasks.publish`.

        Args:
            publish (str): A string of a publisher in pipeline.tasks.publish.*.

        Returns:
            list: A list of Task subclasses defined by the publisher module.
        """
        module = importlib.import_module(
            'artman.tasks.publish.{}'.format(publish),
        )
        return module.TASKS
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号