typedb-driver icon indicating copy to clipboard operation
typedb-driver copied to clipboard

Make use of methods / properties in Python more consistent

Open james-whiteside opened this issue 1 year ago • 0 comments

Problem to Solve

Recently, the Python driver was updated to replace many methods with properties, for example:

Transaction.query()

became:

Transaction.query

This change was not propagated to all parts of the API, for instance:

Explanation.condition()
ConceptMap.explainables()

should probably be:

Explanation.condition
ConceptMap.explainables

but are currently not. This inconsistency makes the API difficult to work with.

Proposed Solution

Update all existing methods to properties wherever appropriate.

james-whiteside avatar Dec 04 '23 11:12 james-whiteside