Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

docs(reasoning): fix Python 3.8 type annotation compatibility

Sameer630521b15f4b8e61
diff --git a/docs/reference/reasoning.md b/docs/reference/reasoning.md
index e2096da2..96b304af 100644
--- a/docs/reference/reasoning.md
+++ b/docs/reference/reasoning.md
@@ -79,7 +79,7 @@ reasoner.add_fact("Employee(John)")
reasoner.add_rule("IF Manager(?x) AND Employee(?x) THEN SeniorStaff(?x)")
# Forward chaining — iterates until fixpoint
-results: list[InferenceResult] = reasoner.forward_chain()
+results = reasoner.forward_chain()
for r in results:
print(r.conclusion) # e.g. "SeniorStaff(John)"
print(r.premises) # list of premise strings matched