diff --git a/sqlalchemy-stubs/sql/operators.pyi b/sqlalchemy-stubs/sql/operators.pyi index 89a08e1..3c65284 100644 --- a/sqlalchemy-stubs/sql/operators.pyi +++ b/sqlalchemy-stubs/sql/operators.pyi @@ -46,8 +46,8 @@ class ColumnOperators(Operators): def notin_(self, other: Union[Iterable[Any], BindParameter, Select, Alias]): ... def notlike(self, other, escape: Optional[Any] = ...): ... def notilike(self, other, escape: Optional[Any] = ...): ... - def is_(self, other): ... - def isnot(self, other): ... + def is_(self, other: Optional[bool]): ... + def isnot(self, other: Optional[bool]): ... def startswith(self, other: str, **kwargs): ... def endswith(self, other, **kwargs): ... def contains(self, other, **kwargs): ... diff --git a/sqlalchemy-stubs/sql/sqltypes.pyi b/sqlalchemy-stubs/sql/sqltypes.pyi index b3d84ba..a4cabee 100644 --- a/sqlalchemy-stubs/sql/sqltypes.pyi +++ b/sqlalchemy-stubs/sql/sqltypes.pyi @@ -252,7 +252,7 @@ class JSON(Indexable, TypeEngine[_JSONT]): hashable: bool = ... NULL: util.symbol = ... none_as_null: bool = ... - def __init__(self, none_as_null: bool = ...) -> None: ... + def __init__(self, none_as_null: bool = ..., astext_type: Optional[String] = ...) -> None: ... class JSONElementType(TypeEngine[Union[int, str]]): def string_bind_processor(self, dialect): ... def string_literal_processor(self, dialect): ...