Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use namespace packages #5

Merged
merged 1 commit into from
Oct 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ mypy = "^0.910"
profile = "black"
known_first_party = [
"google.api",
"google.logging",
"google.gapic.metadata",
"google.logging.type",
"google.longrunning",
"google.rpc",
"google.type"
Expand Down