We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff6025 commit 7008e71Copy full SHA for 7008e71
src/askui/utils/not_given.py
@@ -1,4 +1,4 @@
1
-from typing import Any, ClassVar
+from typing import Any, ClassVar, final
2
from uuid import uuid4
3
4
from pydantic import (
@@ -10,6 +10,7 @@
10
from typing_extensions import Self
11
12
13
+@final # Ensures Self resolves to NotGiven in __new__, fixing mypy return-type check
14
class NotGiven(BaseModel):
15
"""
16
A sentinel value that represents a value that is not given.
0 commit comments