Skip to content

Commit

Permalink
fix: remove concrete subclasses of ColumnType
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Mar 29, 2024
1 parent 8f5e376 commit c36dd79
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 187 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package safeds.data.tabular.typing

/**
* Abstract base class for column types.
*
* @param isNullable Whether the columntype is nullable.
*/
class ColumnType {
/**
* Return whether the given column type is nullable.
*
* @result result1 True if the column is nullable.
*/
@Pure
@PythonName("is_nullable")
fun isNullable() -> result1: Boolean

/**
* Return whether the given column type is numeric.
*
* @result result1 True if the column is numeric.
*/
@Pure
@PythonName("is_numeric")
fun isNumeric() -> result1: Boolean
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ from safeds.data.tabular.typing import ColumnType
*
* @param schema Map from column names to data types.
*/
class Schema(
`schema`: Map<String, ColumnType>
) {
class Schema {
/**
* Return a list of all column names saved in this schema.
*/
Expand Down

0 comments on commit c36dd79

Please sign in to comment.