Skip to content
Snippets Groups Projects
Commit 1199546f authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Compatible way of declaring TypedDict

parent bf2d24aa
No related branches found
No related tags found
1 merge request!311Compatible way of declaring TypedDict
Pipeline #80144 passed
......@@ -12,7 +12,14 @@ from arkindex_worker.cache import CachedElement, CachedEntity, CachedTranscripti
from arkindex_worker.models import Element, Transcription
Entity = TypedDict(
"Entity", name=str, type_id=str, length=int, offset=int, confidence=Optional[float]
"Entity",
{
"name": str,
"type_id": str,
"length": int,
"offset": int,
"confidence": Optional[float],
},
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment