Skip to content

Commit

Permalink
fix overlapping, missing slots
Browse files Browse the repository at this point in the history
  • Loading branch information
ariebovenberg committed Feb 9, 2022
1 parent 2d70ba9 commit 1982742
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions piccolo/columns/combination.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@


class CombinableMixin(object):

__slots__ = ()

def __and__(self, value: Combinable) -> "And":
return And(self, value) # type: ignore

Expand Down
4 changes: 2 additions & 2 deletions piccolo/query/methods/alter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def ddl(self) -> str:

@dataclass
class AddColumn(AlterColumnStatement):
__slots__ = ("column", "name")
__slots__ = ("name",)

column: Column
name: str
Expand Down Expand Up @@ -120,7 +120,7 @@ def ddl(self) -> str:

@dataclass
class SetDefault(AlterColumnStatement):
__slots__ = ("column", "value")
__slots__ = ("value",)

column: Column
value: t.Any
Expand Down

0 comments on commit 1982742

Please sign in to comment.