Skip to content

Commit 7008e71

Browse files
fix: typechecking issue in not_given.py
1 parent 0ff6025 commit 7008e71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/askui/utils/not_given.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, ClassVar
1+
from typing import Any, ClassVar, final
22
from uuid import uuid4
33

44
from pydantic import (
@@ -10,6 +10,7 @@
1010
from typing_extensions import Self
1111

1212

13+
@final # Ensures Self resolves to NotGiven in __new__, fixing mypy return-type check
1314
class NotGiven(BaseModel):
1415
"""
1516
A sentinel value that represents a value that is not given.

0 commit comments

Comments
 (0)