Skip to content

Commit c4487e4

Browse files
exclude only the files that mypy has trouble with
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
1 parent 98c195e commit c4487e4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ src_paths = ["src"]
5858
omit = ["*_pb2_grpc.py", "*_pb2.py", "tests/*", "examples/*", "src/buf/*"]
5959

6060
[tool.mypy]
61-
exclude = ['^src/buf', '^tests/examples', '^src/dispatch/sdk']
61+
exclude = [
62+
'^src/buf',
63+
'^tests/examples',
64+
# mypy 1.10.0 reports false positives for these two files:
65+
# src/dispatch/sdk/v1/function_pb2_grpc.py:74: error: Module has no attribute "experimental" [attr-defined]
66+
# src/dispatch/sdk/v1/dispatch_pb2_grpc.py:80: error: Module has no attribute "experimental" [attr-defined]
67+
'^src/dispatch/sdk/v1/function_pb2_grpc.py',
68+
'^src/dispatch/sdk/v1/dispatch_pb2_grpc.py',
69+
]
6270

6371
[tool.pytest.ini_options]
6472
testpaths = ['tests']

0 commit comments

Comments
 (0)