- pyenv virtualenv 3.12.5 myproject
< li>pyenv local myproject - pdm init min
Код: Выделить всё
myproject/routers/transactions.py:1: error: Cannot find implementation or library stub for module named "asapi" [import-not-found]
myproject/routers/transactions.py:2: error: Cannot find implementation or library stub for module named "fastapi" [import-not-found]
myproject/routers/transactions.py:3: error: Cannot find implementation or library stub for module named "psycopg_pool" [import-not-found]
myproject/routers/system.py:1: error: Cannot find implementation or library stub for module named "fastapi" [import-not-found]
myproject/config/app.py:4: error: Cannot find implementation or library stub for module named "pydantic" [import-not-found]
myproject/config/app.py:5: error: Cannot find implementation or library stub for module named "pydantic_settings" [import-not-found]
tests/test_settings.py:3: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
tests/test_settings.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
myproject/config/loggers.py:7: error: Cannot find implementation or library stub for module named "orjson" [import-not-found]
myproject/config/loggers.py:8: error: Cannot find implementation or library stub for module named "opentelemetry.sdk.resources" [import-not-found]
myproject/config/loggers.py:9: error: Cannot find implementation or library stub for module named "opentelemetry.trace" [import-not-found]
myproject/main.py:5: error: Cannot find implementation or library stub for module named "anyio" [import-not-found]
myproject/main.py:6: error: Cannot find implementation or library stub for module named "asapi" [import-not-found]
myproject/main.py:7: error: Cannot find implementation or library stub for module named "fastapi" [import-not-found]
myproject/main.py:8: error: Cannot find implementation or library stub for module named "psycopg_pool" [import-not-found]
Found 14 errors in 6 files (checked 7 source files)
Код: Выделить всё
[mypy]
ignore_missing_imports = True
Подробнее здесь: https://stackoverflow.com/questions/790 ... gle-import