Skip to content

Commit

Permalink
Use namespace packages
Browse files Browse the repository at this point in the history
This is necessary to comply with an update to PEP561: python/peps#2083

Closes #3
  • Loading branch information
henribru committed Oct 12, 2021
1 parent f2782db commit 0f86598
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ jobs:
- name: Run Mypy
run: |
mv google-stubs google
poetry run mypy google
poetry run mypy --namespace-packages --explicit-package-base google
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This package provides type stubs for the [googleapis-common-protos](https://pypi

The stubs were created automatically by [mypy-protobuf](https://github.com/dropbox/mypy-protobuf).

Note that if you're using Mypy you need to use the `--namespace-packages` option as `google` and some of its subpackages are namespace packages.

## Installation
```shell script
$ pip install googleapis-common-protos-stubs
Expand Down
3 changes: 0 additions & 3 deletions google-stubs/__init__.pyi

This file was deleted.

File renamed without changes.
Empty file removed google-stubs/gapic/__init__.pyi
Empty file.
1 change: 1 addition & 0 deletions google-stubs/gapic/metadata/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
partial
3 changes: 0 additions & 3 deletions google-stubs/logging/__init__.pyi

This file was deleted.

1 change: 1 addition & 0 deletions google-stubs/logging/type/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
partial
1 change: 1 addition & 0 deletions google-stubs/longrunning/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
partial
3 changes: 0 additions & 3 deletions google-stubs/rpc/__init__.pyi

This file was deleted.

1 change: 1 addition & 0 deletions google-stubs/rpc/context/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
partial
1 change: 1 addition & 0 deletions google-stubs/type/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
partial

0 comments on commit 0f86598

Please sign in to comment.