fix(ci): replace list[Event] with List[Event] for Python 3.8 compat

This commit is contained in:
KaifAhmad1
2026-05-24 14:46:50 +05:30
parent 37e640e7b4
commit beacc88b02
+2 -1
View File
@@ -144,10 +144,11 @@ Triplets are suitable for loading directly into a triplet store or knowledge gra
Detect events with participants and temporal context:
```python
from typing import List
from semantica.semantic_extract import EventDetector, Event
extractor = EventDetector(method="llm", llm_provider=llm)
events: list[Event] = extractor.extract(text)
events: List[Event] = extractor.extract(text)
for event in events:
print(f"Event type: {event.type}")