This repository was archived by the owner on Oct 9, 2023. It is now read-only.
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
Client exposes too many methods to create Options object #294
Closed
Description
Description
Client Python currently exposes too many methods to create a TypeDBOptions
object. It can be instantiated through any of the following:
TypeDBOptions().core()
TypeDBOptions().cluster()
TypeDBClusterOptions().core()
TypeDBClusterOptons().cluster()
This creates ambiguity in which methods to use, not to mention including nonsensical options.
Environment
- TypeDB client-python version: 2.17.0
- Python version: 3.9.16
Expected Output
Only two options should be exposed, probably among the following:
TypeDBOptions().core()
TypeDBOptions().cluster()
or
TypeDBOptions()
TypeDBClusterOptions()
or
TypeDBOptions().core()
TypeDBClusterOptions().cluster()
Actual Output
Client Python exposes the four options listed above.