We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a43b771 commit 04db724Copy full SHA for 04db724
src/common/metadata/types.py
@@ -1,8 +1,9 @@
1
-from typing import TypedDict, Any, NotRequired, Protocol
2
-from django.contrib.contenttypes.models import ContentType
+from typing import Any, NotRequired, Protocol, TypedDict
+
3
4
class HasId(Protocol):
5
- id: int
+ id: int
6
7
8
class MetadataItem(TypedDict, total=False):
9
model_field: HasId
0 commit comments