Python pyannotate apply说;无需修改任何文件。”;即使函数没有注释

Python pyannotate apply说;无需修改任何文件。”;即使函数没有注释,python,Python,我一直在使用pytest,并一直遵循以下流程: pip install pytest-annotate # Generate annotations by running your pytest tests as usual: pytest --annotate-output=./annotations.json # Apply those annotations using pyannotate: pyannotate --type-info ./annotations.json . 但

我一直在使用pytest,并一直遵循以下流程:

pip install pytest-annotate

# Generate annotations by running your pytest tests as usual:
pytest --annotate-output=./annotations.json

# Apply those annotations using pyannotate:
pyannotate --type-info ./annotations.json .
但当我跑完最后一步时,我可以看到

(base) C:\planner\planner-backend\service\planner>pyannotate -w --type-info ./annotations.json .
No files need to be modified.
pytest收集步骤可以正常工作,并创建了annotations.json。 看起来像:

[
    {
        "path": "app/analyses.py",
        "line": 148,
        "func_name": "create",
        "type_comments": [
            "() -> Tuple[database.analysis.Analysis, int]",
            "() -> pyannotate_runtime.collect_types.NoReturnType"
        ],
        "samples": 6
    },
    {
        "path": "app/analyses.py",
        "line": 171,
        "func_name": "update",
        "type_comments": [
            "(int, int, str) -> Tuple[database.analysis.Analysis, int]"
        ],
        "samples": 1
    },
还有8000多行

当查看当前目录时,数据库和应用程序都是此处的目录。因此在/database/analysis.py中有类分析

我正在开发Docker内部并使用pipenv,但我尝试调用Docker内部和外部以及pipenv外壳内部和外部,但没有任何帮助

你对下一步的尝试有什么建议吗