Skip to content

Commit a535640

Browse files
jakkdlclaude
andcommitted
[peewee] Return Negated from ColumnBase.__invert__
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 78f1424 commit a535640

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎stubs/peewee/peewee.pyi‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class ColumnBase(Node):
297297
__pos__ = asc
298298
def desc(self, collation=None, nulls=None) -> Ordering: ...
299299
__neg__ = desc
300-
def __invert__(self) -> ColumnBase: ...
300+
def __invert__(self) -> Negated: ...
301301
__and__: ClassVar[Callable[[Self, Any], Expression]]
302302
__or__: ClassVar[Callable[[Self, Any], Expression]]
303303
def __add__(self, rhs: Any) -> Expression: ...
@@ -555,7 +555,7 @@ EXCLUDED: Incomplete
555555
class DQ(ColumnBase):
556556
query: Incomplete
557557
def __init__(self, **query) -> None: ...
558-
def __invert__(self) -> Self: ...
558+
def __invert__(self) -> Self: ... # type: ignore[override]
559559
def clone(self) -> DQ: ...
560560

561561
Tuple: Incomplete
@@ -1439,7 +1439,7 @@ class JSONField(FieldDatabaseHook, Field):
14391439
def has_keys(self, key_list) -> Expression: ...
14401440
def has_any_keys(self, key_list) -> Expression: ...
14411441

1442-
class BitField(BitwiseMixin, BigIntegerField[_V]):
1442+
class BitField(BitwiseMixin, BigIntegerField[_V]): # type: ignore[misc]
14431443
def __new__(cls, *args: Any, **kwargs: Unpack[_FieldKwargs]) -> BitField[int]: ...
14441444
def flag(self, value=None): ...
14451445

0 commit comments

Comments
 (0)