diff --git a/stubs/peewee/peewee.pyi b/stubs/peewee/peewee.pyi index 4b718006d08e..cfbbf0df398c 100644 --- a/stubs/peewee/peewee.pyi +++ b/stubs/peewee/peewee.pyi @@ -297,7 +297,7 @@ class ColumnBase(Node): __pos__ = asc def desc(self, collation=None, nulls=None) -> Ordering: ... __neg__ = desc - def __invert__(self): ... + def __invert__(self) -> Negated: ... def __and__(self, rhs) -> Expression: ... def __or__(self, rhs) -> Expression: ... def __add__(self, rhs) -> Expression: ... @@ -1439,7 +1439,7 @@ class JSONField(FieldDatabaseHook, Field): def has_keys(self, key_list) -> Expression: ... def has_any_keys(self, key_list) -> Expression: ... -class BitField(BitwiseMixin, BigIntegerField[_V]): +class BitField(BitwiseMixin, BigIntegerField[_V]): # type: ignore[misc] def __new__(cls, *args: Any, **kwargs: Unpack[_FieldKwargs]) -> BitField[int]: ... def flag(self, value=None): ...