Commit b3a0d33
committed
Convert
These were converted into private classes during the 4.0 migration,
as we were only supporting keyword arguments for the client configuration.
However, that led to a poor user experience, as we had to use `**kwargs`,
instead of listing all the configuration elements in the client constructor.
(IDEs become painfully slow once we list all keyword arguments, as there
are too many of them)
The solution to this problem is to make the Config classes public API
and provide helper methods over them to convert those classes to
dictionaries so that they can be passed in to the client code.
```python
config = Config()
config.cluster_name = "dev2"
client = HazelcastClient(**config.to_dict())
```
We provide full type hints for config elements.Config classes to public API1 parent 497694c commit b3a0d33
File tree
17 files changed
+885
-295
lines changed- hazelcast
- proxy
- tests/unit
- serialization
- binary_compatibility
17 files changed
+885
-295
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
0 commit comments