Skip to content

Commit cbac90e

Browse files
authored
feat: add interface files with mypy information to aid with type checking (#52)
1 parent 51ec42a commit cbac90e

15 files changed

+6571
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,3 @@ src/substrait/_version.py
142142
.directory
143143
.gdb_history
144144
.DS_Store
145-
146-
# Python interface files
147-
*.pyi

buf.gen.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
plugins:
22
- name: python
33
out: src/substrait/gen
4+
- plugin: buf.build/community/nipunn1313-mypy:v3.5.0
5+
out: src/substrait/gen
46
version: v1

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies:
77
- pre-commit
88
- protobuf = 3.20.1 # protobuf==3.20 C extensions aren't compatible with 3.19.4
99
- protoletariat >= 2.0.0
10+
- mypy-protobuf
1011
- pytest >= 7.0.0
1112
- python >= 3.8.1
1213
- setuptools >= 61.0.0

src/substrait/gen/__init__.pyi

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/proto/__init__.pyi

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/proto/algebra_pb2.pyi

Lines changed: 3901 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/proto/capabilities_pb2.pyi

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/proto/extended_expression_pb2.pyi

Lines changed: 107 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/proto/extensions/__init__.pyi

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/proto/extensions/extensions_pb2.pyi

Lines changed: 153 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)