|
100 | 100 |
|
101 | 101 | # pytype: skip-file |
102 | 102 |
|
| 103 | +import collections |
103 | 104 | import typing |
104 | 105 |
|
105 | 106 | import numpy as np |
|
122 | 123 | ('allow_duplicates', typing.Optional[bool]), |
123 | 124 | ('dynamic_read_poll_interval_seconds', typing.Optional[int]), |
124 | 125 | ('consumer_factory_fn_class', typing.Optional[str]), |
125 | | - ('consumer_factory_fn_params', typing.Optional[typing.Mapping[str, str]])]) |
| 126 | + ( |
| 127 | + 'consumer_factory_fn_params', |
| 128 | + typing.Optional[collections.abc.Mapping[str, str]])]) |
126 | 129 |
|
127 | 130 |
|
128 | 131 | def default_io_expansion_service(append_args=None): |
@@ -170,8 +173,10 @@ def __init__( |
170 | 173 | redistribute_num_keys=np.int32(0), |
171 | 174 | allow_duplicates=False, |
172 | 175 | dynamic_read_poll_interval_seconds: typing.Optional[int] = None, |
173 | | - consumer_factory_fn_class=None, |
174 | | - consumer_factory_fn_params=None): |
| 176 | + consumer_factory_fn_class: typing.Optional[ |
| 177 | + collections.abc.Mapping] = None, |
| 178 | + consumer_factory_fn_params: typing.Optional[ |
| 179 | + collections.abc.Mapping] = None): |
175 | 180 | """ |
176 | 181 | Initializes a read operation from Kafka. |
177 | 182 |
|
@@ -218,7 +223,7 @@ def __init__( |
218 | 223 | existing provided consumerFactoryFn. If not None, this will construct |
219 | 224 | Kafka consumers with a custom configuration. |
220 | 225 | :param consumer_factory_fn_params: A map which specifies the parameters for |
221 | | - the provided consumer_factory_fn_class. IF not None, the values in this |
| 226 | + the provided consumer_factory_fn_class. If not None, the values in this |
222 | 227 | map will be used when constructing the consumer_factory_fn_class object. |
223 | 228 | This cannot be null if the consumer_factory_fn_class is not null. |
224 | 229 | """ |
|
0 commit comments