Skip to content

Commit 504ee12

Browse files
committed
Remove redundant type constraint in rename{}.into(property)
1 parent 4fec667 commit 504ee12

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+1
-1
lines changed

src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/rename.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public fun <T, C> RenameClause<T, C>.into(vararg newNames: String): DataFrame<T>
4444
df.move(columns).intoIndexed { col, index ->
4545
col.path.dropLast(1) + newNames[index]
4646
}
47-
public fun <T, C> RenameClause<T, C>.into(vararg newNames: KProperty<C>): DataFrame<T> =
47+
public fun <T, C> RenameClause<T, C>.into(vararg newNames: KProperty<*>): DataFrame<T> =
4848
into(*newNames.map { it.name }.toTypedArray())
4949

5050
public fun <T, C> RenameClause<T, C>.into(transform: (ColumnWithPath<C>) -> String): DataFrame<T> =

0 commit comments

Comments
 (0)