File tree Expand file tree Collapse file tree 5 files changed +23
-66
lines changed Expand file tree Collapse file tree 5 files changed +23
-66
lines changed Original file line number Diff line number Diff line change 5959 with :
6060 python-version : ' 3.10'
6161
62- - name : Install Poetry
63- uses : snok/install-poetry@v1
64-
6562 - name : Install dependencies
6663 run : |
6764 mkdir -p $HOME/.ssh
@@ -77,16 +74,14 @@ jobs:
7774
7875 go run mage.go deps
7976
80- poetry install --no-interaction
81-
8277 - name : Clean generated code
8378 run : go run mage.go clean
8479
8580 - name : Setup Buf Registry
8681 run : echo -e "machine buf.build\npassword ${ASERTO_BUF_TOKEN}" >> ~/.netrc
8782
8883 - name : Generate
89- run : poetry run go run mage.go generate
84+ run : go run mage.go generate
9085
9186 - name : Commit changes
9287 if : github.event_name == 'workflow_dispatch'
@@ -161,7 +156,6 @@ jobs:
161156 - name : Install Poetry
162157 uses : snok/install-poetry@v1
163158
164-
165159 - name : Build and push the python package
166160 run : go run mage.go release
167161
Original file line number Diff line number Diff line change 66 out : ./src
77 - plugin : buf.build/protocolbuffers/python
88 out : ./src
9- - name : " mypy "
9+ - plugin : buf.build/protocolbuffers/pyi
1010 out : " ./src"
11- - name : " mypy_grpc "
11+ - plugin : " buf.build/community/nipunn1313-mypy-grpc "
1212 out : " ./src"
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def __init__(self):
9090 self ._in_const : bool = False
9191
9292 def visit_ClassDef (self , node : ast .ClassDef ):
93- if self .is_public (node .name ):
93+ if self .is_public (node .name ) and not node . name . endswith ( "AsyncStub" ) :
9494 self .symbols .append (node .name )
9595
9696 def is_public (self , name : str ) -> bool :
Original file line number Diff line number Diff line change @@ -30,14 +30,15 @@ packages = [
3030
3131[tool .poetry .dependencies ]
3232python = " >=3.8"
33+ grpcio = " >=1.58.0"
34+ typing-extensions = " >=3.10.0"
3335
3436[tool .poetry .dev-dependencies ]
35- mypy = " ^1.6.1"
36- mypy-protobuf = " ^3.5.0"
3737black = " ^23.10.1"
3838isort = " ^5.10.1"
3939
4040[tool .mypy ]
41+ explicit_package_bases = true
4142show_error_codes = true
4243check_untyped_defs = false
4344disallow_any_decorated = false
You can’t perform that action at this time.
0 commit comments