Skip to content

Commit

Permalink
feat: add mypy interface files to aid with type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Mar 27, 2024
1 parent 51ec42a commit 712040c
Show file tree
Hide file tree
Showing 15 changed files with 6,571 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,3 @@ src/substrait/_version.py
.directory
.gdb_history
.DS_Store

# Python interface files
*.pyi
2 changes: 2 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
plugins:
- name: python
out: src/substrait/gen
- plugin: buf.build/community/nipunn1313-mypy:v3.5.0
out: src/substrait/gen
version: v1
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- pre-commit
- protobuf = 3.20.1 # protobuf==3.20 C extensions aren't compatible with 3.19.4
- protoletariat >= 2.0.0
- mypy-protobuf
- pytest >= 7.0.0
- python >= 3.8.1
- setuptools >= 61.0.0
Expand Down
1 change: 1 addition & 0 deletions src/substrait/gen/__init__.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/substrait/gen/proto/__init__.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3,901 changes: 3,901 additions & 0 deletions src/substrait/gen/proto/algebra_pb2.pyi

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions src/substrait/gen/proto/capabilities_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 107 additions & 0 deletions src/substrait/gen/proto/extended_expression_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/substrait/gen/proto/extensions/__init__.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

153 changes: 153 additions & 0 deletions src/substrait/gen/proto/extensions/extensions_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 712040c

Please sign in to comment.