小编nil*_*ltz的帖子

无法构建angularjs doc(不知道如何格式化@ngdoc:方法)

我有一些带有一些文档的服务,但是当我尝试使用grunt-ngdocs构建文档时,它失败了:

Warning: Don't know how to format @ngdoc: method Use --force to continue.
Run Code Online (Sandbox Code Playgroud)

这是我想要做的

(function(angular) {
    'use strict';

    angular.module('services.base64', [])
    .factory(
            'Base64',
            [function() {

                /**
                 * @ngdoc service
                 * @name Base64
                 * @module services.base64
                 * @description Provides encoding a string into base64, and decode base64 to a string
                 */
                return {
                    /**
                     * @ngdoc method
                     * @name Base64#encode
                     * @param {string}
                     *            input the string you want to encode as base64
                     * @returns {string} the base64 encoded string
                     */
                    encode …
Run Code Online (Sandbox Code Playgroud)

angularjs gruntjs

11
推荐指数
1
解决办法
7665
查看次数

MyPy 找不到我的本地包的类型

我有两个 python 包。一种是 util 库,一种是将使用 util 库的应用程序(最终我将有更多应用程序共享该库。

path我对两者都使用诗歌,并且应用程序使用和属性将公共库指定为依赖项develop。

例如,我的布局看起来像这样:

- common/
   - common/
      - __init__.py
      - py.typed
   - pyproject.toml

- myapp/
   - myapp/
      - __init__.py
      - py.typed
   - pyproject.toml
Run Code Online (Sandbox Code Playgroud)

看起来myapp\pyproject.toml像这样:

[tool.poetry]
name = "myapp"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]

[tool.poetry.dependencies]
python = "^3.9"
common = { path = "../common", develop = true }

[tool.poetry.dev-dependencies]
mypy = "^0.910"
flake8 = "^4.0.1"
black = {version = "^21.12b0", allow-prereleases = true}
pytest …
Run Code Online (Sandbox Code Playgroud)

python mypy python-typing python-poetry

9
推荐指数
1
解决办法
3732
查看次数

标签 统计

angularjs ×1

gruntjs ×1

mypy ×1

python ×1

python-poetry ×1

python-typing ×1