@dataclassclassNothing(ColumnType):"""Type for a column that contains None Values only."""_is_nullable:booldef__init__(self)->None:self._is_nullable=Truedef__repr__(self)->str:result="Nothing"ifself._is_nullable:result+="?"returnresultdefis_nullable(self)->bool:""" Return whether the given column type is nullable. Returns ------- is_nullable: True if the column is nullable. """returnTruedefis_numeric(self)->bool:""" Return whether the given column type is numeric. Returns ------- is_numeric: True if the column is numeric. """returnFalse
defis_nullable(self)->bool:""" Return whether the given column type is nullable. Returns ------- is_nullable: True if the column is nullable. """returnTrue
defis_numeric(self)->bool:""" Return whether the given column type is numeric. Returns ------- is_numeric: True if the column is numeric. """returnFalse