|
23 | 23 |
|
24 | 24 | __version__ = package_version.__version__ |
25 | 25 |
|
| 26 | +from typing import List |
| 27 | + |
26 | 28 | from google.cloud.firestore_v1 import types |
27 | | -from google.cloud.firestore_v1._helpers import GeoPoint |
28 | | -from google.cloud.firestore_v1._helpers import ExistsOption |
29 | | -from google.cloud.firestore_v1._helpers import LastUpdateOption |
30 | | -from google.cloud.firestore_v1._helpers import ReadAfterWriteError |
31 | | -from google.cloud.firestore_v1._helpers import WriteOption |
32 | | -from google.cloud.firestore_v1.base_aggregation import CountAggregation |
33 | | -from google.cloud.firestore_v1.base_query import And |
34 | | -from google.cloud.firestore_v1.base_query import FieldFilter |
35 | | -from google.cloud.firestore_v1.base_query import Or |
| 29 | +from google.cloud.firestore_v1._helpers import ( |
| 30 | + ExistsOption, |
| 31 | + GeoPoint, |
| 32 | + LastUpdateOption, |
| 33 | + ReadAfterWriteError, |
| 34 | + WriteOption, |
| 35 | +) |
36 | 36 | from google.cloud.firestore_v1.async_batch import AsyncWriteBatch |
37 | 37 | from google.cloud.firestore_v1.async_client import AsyncClient |
38 | 38 | from google.cloud.firestore_v1.async_collection import AsyncCollectionReference |
39 | 39 | from google.cloud.firestore_v1.async_document import AsyncDocumentReference |
40 | 40 | from google.cloud.firestore_v1.async_query import AsyncQuery |
41 | | -from google.cloud.firestore_v1.async_transaction import async_transactional |
42 | | -from google.cloud.firestore_v1.async_transaction import AsyncTransaction |
| 41 | +from google.cloud.firestore_v1.async_transaction import ( |
| 42 | + AsyncTransaction, |
| 43 | + async_transactional, |
| 44 | +) |
| 45 | +from google.cloud.firestore_v1.base_aggregation import CountAggregation |
43 | 46 | from google.cloud.firestore_v1.base_document import DocumentSnapshot |
| 47 | +from google.cloud.firestore_v1.base_query import And, FieldFilter, Or |
44 | 48 | from google.cloud.firestore_v1.batch import WriteBatch |
45 | 49 | from google.cloud.firestore_v1.client import Client |
46 | 50 | from google.cloud.firestore_v1.collection import CollectionReference |
47 | 51 | from google.cloud.firestore_v1.document import DocumentReference |
48 | | -from google.cloud.firestore_v1.query import CollectionGroup |
49 | | -from google.cloud.firestore_v1.query import Query |
50 | | -from google.cloud.firestore_v1.transaction import Transaction |
51 | | -from google.cloud.firestore_v1.transaction import transactional |
52 | | -from google.cloud.firestore_v1.transforms import ArrayRemove |
53 | | -from google.cloud.firestore_v1.transforms import ArrayUnion |
54 | | -from google.cloud.firestore_v1.transforms import DELETE_FIELD |
55 | | -from google.cloud.firestore_v1.transforms import Increment |
56 | | -from google.cloud.firestore_v1.transforms import Maximum |
57 | | -from google.cloud.firestore_v1.transforms import Minimum |
58 | | -from google.cloud.firestore_v1.transforms import SERVER_TIMESTAMP |
| 52 | +from google.cloud.firestore_v1.query import CollectionGroup, Query |
| 53 | +from google.cloud.firestore_v1.transaction import Transaction, transactional |
| 54 | +from google.cloud.firestore_v1.transforms import ( |
| 55 | + DELETE_FIELD, |
| 56 | + SERVER_TIMESTAMP, |
| 57 | + ArrayRemove, |
| 58 | + ArrayUnion, |
| 59 | + Increment, |
| 60 | + Maximum, |
| 61 | + Minimum, |
| 62 | +) |
59 | 63 | from google.cloud.firestore_v1.watch import Watch |
60 | 64 |
|
61 | | - |
62 | 65 | # TODO(https://github.com/googleapis/python-firestore/issues/93): this is all on the generated surface. We require this to match |
63 | 66 | # firestore.py. So comment out until needed on customer level for certain. |
64 | 67 | # from .services.firestore import FirestoreClient |
|
102 | 105 | # from .types.write import DocumentDelete |
103 | 106 | # from .types.write import DocumentRemove |
104 | 107 | from .types.write import DocumentTransform |
105 | | -from typing import List |
106 | | - |
107 | 108 |
|
108 | 109 | # from .types.write import ExistenceFilter |
109 | 110 | # from .types.write import Write |
|
0 commit comments