From 2891a421f196e7cf4db41c70e2cae460ac02157f Mon Sep 17 00:00:00 2001 From: dni Date: Tue, 19 Jul 2022 13:06:19 +0200 Subject: [PATCH] fix up mypy.ini, and properly ignore grpc and extension --- mypy.ini | 7 ++++--- requirements.txt | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mypy.ini b/mypy.ini index 735f89e05..e5a974b51 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,7 +1,8 @@ [mypy] ignore_missing_imports = True -exclude = lnbits/wallets/lnd_grpc_files/ -exclude = lnbits/extensions/ - +exclude = (?x)( + ^lnbits/extensions. + | ^lnbits/wallets/lnd_grpc_files. + ) [mypy-lnbits.wallets.lnd_grpc_files.*] follow_imports = skip diff --git a/requirements.txt b/requirements.txt index f8ccf47cb..512011ec2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -44,6 +44,7 @@ sqlalchemy==1.3.23 sqlalchemy-aio==0.16.0 sse-starlette==0.6.2 starlette==0.14.2 +types-protobuf==3.19.22 typing-extensions==3.10.0.2 uvicorn==0.15.0 uvloop==0.16.0