Skip to content

Commit 3bfcc0c

Browse files
committed
refactor(api)!: make Table.cast and Table.try_cast methods positional-only
1 parent dd0bbc2 commit 3bfcc0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibis/expr/types/relations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def __contains__(self, name: str) -> bool:
370370
"""
371371
return name in self.schema()
372372

373-
def cast(self, schema: SchemaLike) -> Table:
373+
def cast(self, schema: SchemaLike, /) -> Table:
374374
"""Cast the columns of a table.
375375
376376
Similar to `pandas.DataFrame.astype`.
@@ -447,7 +447,7 @@ def cast(self, schema: SchemaLike) -> Table:
447447
"""
448448
return self._cast(schema, cast_method="cast")
449449

450-
def try_cast(self, schema: SchemaLike) -> Table:
450+
def try_cast(self, schema: SchemaLike, /) -> Table:
451451
"""Cast the columns of a table.
452452
453453
If the cast fails for a row, the value is returned

0 commit comments

Comments
 (0)