Skip to content

Commit afff842

Browse files
authored
feat: add inline type hints and pytype ci (#134)
1 parent 4256a85 commit afff842

36 files changed

+497
-271
lines changed

google/cloud/firestore.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
from google.cloud.firestore_v1 import Watch
4747
from google.cloud.firestore_v1 import WriteBatch
4848
from google.cloud.firestore_v1 import WriteOption
49+
from typing import List
50+
51+
__all__: List[str]
52+
__version__: str
4953

5054

5155
__all__ = [

google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
from google.auth import credentials # type: ignore
2929
from google.oauth2 import service_account # type: ignore
3030

31-
from google.api_core import operation as ga_operation
32-
from google.api_core import operation_async
31+
from google.api_core import operation as ga_operation # type: ignore
32+
from google.api_core import operation_async # type: ignore
3333
from google.cloud.firestore_admin_v1.services.firestore_admin import pagers
3434
from google.cloud.firestore_admin_v1.types import field
3535
from google.cloud.firestore_admin_v1.types import field as gfa_field

google/cloud/firestore_admin_v1/services/firestore_admin/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
from google.auth.exceptions import MutualTLSChannelError # type: ignore
3131
from google.oauth2 import service_account # type: ignore
3232

33-
from google.api_core import operation as ga_operation
34-
from google.api_core import operation
35-
from google.api_core import operation_async
33+
from google.api_core import operation as ga_operation # type: ignore
34+
from google.api_core import operation # type: ignore
35+
from google.api_core import operation_async # type: ignore
3636
from google.cloud.firestore_admin_v1.services.firestore_admin import pagers
3737
from google.cloud.firestore_admin_v1.types import field
3838
from google.cloud.firestore_admin_v1.types import field as gfa_field

google/cloud/firestore_admin_v1/services/firestore_admin/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import abc
1919
import typing
2020

21-
from google import auth
21+
from google import auth # type: ignore
2222
from google.api_core import exceptions # type: ignore
2323
from google.api_core import operations_v1 # type: ignore
2424
from google.auth import credentials # type: ignore

google/cloud/firestore_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
# from .types.write import DocumentDelete
9898
# from .types.write import DocumentRemove
9999
from .types.write import DocumentTransform
100+
from typing import List
101+
102+
__all__: List[str]
103+
__version__: str
100104

101105
# from .types.write import ExistenceFilter
102106
# from .types.write import Write

0 commit comments

Comments
 (0)