Skip to content

Commit 16a9831

Browse files
committed
CharField can receive ints
1 parent 9eb95fb commit 16a9831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/db/models/fields/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class CharField(Field):
133133
validators: Iterable[_ValidatorCallable] = ...,
134134
error_messages: Optional[_ErrorMessagesToOverride] = ...,
135135
): ...
136-
def __set__(self, instance, value: Union[str, Combinable]) -> None: ...
136+
def __set__(self, instance, value: Union[str, int, Combinable]) -> None: ...
137137
def __get__(self, instance, owner) -> str: ...
138138

139139
class SlugField(CharField):

0 commit comments

Comments
 (0)