Skip to content

Commit 5871918

Browse files
authored
Merge pull request #12 from henribru/namespace-package-handling
2 parents 2d29b82 + 5758033 commit 5871918

5 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ jobs:
100100
- name: Run Mypy
101101
run: |
102102
mv google-stubs google
103-
poetry run mypy google
103+
poetry run mypy --namespace-packages --explicit-package-bases google

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ The bare output from `stubgen` is used by the ransport classes. These may be typ
5252
Some service methods allow you to pass in either a protobuf message or a dictionary for certain arguments.
5353
There is no check that the dictionary conforms to the message structure, as this would require a `TypedDict` subclass
5454
for each message.
55+
56+
Note that if you're using Mypy you need to use the `--namespace-packages` option as `google` and `google.ads` are namespace packages.

google-stubs/__init__.pyi

Whitespace-only changes.

google-stubs/ads/__init__.pyi

Whitespace-only changes.

0 commit comments

Comments
 (0)