fix(checker): handle setting unknown as column
This commit is contained in:
@@ -117,7 +117,7 @@ class ColumnMethodRegistry(MethodRegistry[Call]):
|
|||||||
# Build signature with new column type and generic operand
|
# Build signature with new column type and generic operand
|
||||||
param_type: TypeVar = TypeVar(name="T", bound=None)
|
param_type: TypeVar = TypeVar(name="T", bound=None)
|
||||||
signature = GenericType(
|
signature = GenericType(
|
||||||
name="add",
|
name=method,
|
||||||
params=[param_type],
|
params=[param_type],
|
||||||
body=Function(
|
body=Function(
|
||||||
params=ParamSpec(
|
params=ParamSpec(
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class FrameManager:
|
|||||||
location,
|
location,
|
||||||
f"Cannot assign {type} to dataframe column. Must be a ColumnType",
|
f"Cannot assign {type} to dataframe column. Must be a ColumnType",
|
||||||
)
|
)
|
||||||
return frame
|
return self._set_column(frame, name, ColumnType(type=UnknownType()))
|
||||||
return self._set_column(frame, name, type)
|
return self._set_column(frame, name, type)
|
||||||
|
|
||||||
def get(
|
def get(
|
||||||
|
|||||||
Reference in New Issue
Block a user