Skip to content
Snippets Groups Projects

Compatible way of declaring TypedDict

Merged Yoann Schneider requested to merge fix-typed-dict-entity into master
1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
@@ -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],
},
)
Loading