Skip to content

Commit

Permalink
Remove trailing whitespace in data classes in cadenzaanyltics
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Janßen authored and buddemat committed Jun 12, 2024
1 parent 5020531 commit f0ac52b
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/cadenzaanalytics/data/analytics_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AnalyticsExtension(DataObject):
----------
DataObject : type
The base data object type from which AnalyticsExtension inherits.
"""
"""
_attribute_mapping = {
"printName": "_print_name",
"extensionType": "_extension_type",
Expand All @@ -39,7 +39,7 @@ def print_name(self) -> str:
-------
str
The print name of the analytics extension.
"""
"""
return self._print_name

@property
Expand All @@ -50,5 +50,5 @@ def extension_type(self) -> ExtensionType:
-------
ExtensionType
The extension type of the analytics extension.
"""
"""
return self._extension_type
2 changes: 1 addition & 1 deletion src/cadenzaanalytics/data/attribute_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AttributeGroup(DataObject):
----------
DataObject : type
The base data object type from which AttributeGroup inherits.
"""
"""
_attribute_mapping = {
"name": "_name",
"printName": "_print_name",
Expand Down
2 changes: 1 addition & 1 deletion src/cadenzaanalytics/data/attribute_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class AttributeRole(Enum):
"""A class representing attribute roles in data modeling like dimension and measure.
"""
"""
DIMENSION = "dimension"
MEASURE = "measure"

Expand Down
18 changes: 9 additions & 9 deletions src/cadenzaanalytics/data/column_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ColumnMetadata(DataObject):
-------
type
Description of what the method returns.
"""
"""
_attribute_mapping = {
"name": "_name",
"printName": "_print_name",
Expand Down Expand Up @@ -65,7 +65,7 @@ def name(self) -> str:
-------
str
The name of the column.
"""
"""
return self._name

@property
Expand All @@ -76,7 +76,7 @@ def print_name(self) -> str:
-------
str
The print name of the column.
"""
"""
return self._print_name

@property
Expand All @@ -87,7 +87,7 @@ def attribute_group_name(self) -> str:
-------
str
The attribute group name of the column.
"""
"""
return self._attribute_group_name

@property
Expand All @@ -98,7 +98,7 @@ def data_type(self) -> DataType:
-------
DataType
The data type of the column.
"""
"""
return self._data_type

@property
Expand All @@ -109,7 +109,7 @@ def role(self) -> AttributeRole:
-------
AttributeRole
The role of the column.
"""
"""
return self._role

@property
Expand All @@ -120,7 +120,7 @@ def measure_aggregation(self) -> Optional[MeasureAggregation]:
-------
MeasureAggregation
The measure aggregation of the column.
"""
"""
return self._measure_aggregation

@property
Expand All @@ -131,7 +131,7 @@ def format(self) -> str:
-------
str
The format of the column.
"""
"""
return self._format

@property
Expand All @@ -142,5 +142,5 @@ def geometry_type(self) -> GeometryType:
-------
GeometryType
The geometry type of the column.
"""
"""
return self._geometry_type
4 changes: 2 additions & 2 deletions src/cadenzaanalytics/data/data_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DataObject:
-------
dict
Serialize the data object to a JSON string.
"""
"""
_attribute_mapping = {}
_attribute_constructors = {} # required for enums that are deserialized

Expand Down Expand Up @@ -47,7 +47,7 @@ def to_json(self, indent=None) -> str:
-------
str
A JSON string representing the data object.
"""
"""
return json.dumps(self._to_dict(), indent=indent, default=str)

@classmethod
Expand Down
4 changes: 2 additions & 2 deletions src/cadenzaanalytics/data/data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# pylint: disable=duplicate-code
class DataType(Enum):
"""A class representing various data types such as string, integer, float, zonedDateTime, and geometry.
"""
"""
STRING = "string"
INT64 = "int64"
FLOAT64 = "float64"
Expand All @@ -21,7 +21,7 @@ def pandas_type(self):
-------
str
The pandas data type corresponding to the given value.
"""
"""
if self.value == 'int64':
return "Int64"
if self.value == 'float64':
Expand Down
2 changes: 1 addition & 1 deletion src/cadenzaanalytics/data/extension_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class ExtensionType(Enum):
"""A class representing the different types of extensions such as visualization, enrichment, calculation.
"""
"""
VISUALIZATION = "visualization"
ENRICHMENT = "enrichment"
CALCULATION = "calculation"
Expand Down
2 changes: 1 addition & 1 deletion src/cadenzaanalytics/data/geometry_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class GeometryType(Enum):
"""A class representing different types of geometries such as point, linestring, polygon, multipoint, multilinestring, multipolygon.
"""
"""
POINT = "point"
LINESTRING = "linestring"
POLYGON = "polygon"
Expand Down
2 changes: 1 addition & 1 deletion src/cadenzaanalytics/data/measure_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class MeasureAggregation(Enum):
"""A class representing various aggregation functions for measures such as count, countDistinct, sum, average, min and max.
"""
"""
COUNT = "count"
COUNT_DISTINCT = "countDistinct"
SUM = "sum"
Expand Down
2 changes: 1 addition & 1 deletion src/cadenzaanalytics/data/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Parameter(DataObject):
----------
DataObject : type
The base data object type from which Parameter inherits.
"""
"""
_attribute_mapping = {
"name": "_name",
"printName": "_print_name",
Expand Down
2 changes: 1 addition & 1 deletion src/cadenzaanalytics/data/parameter_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ParameterType(Enum):
-------
str
A string representing the parameter type.
"""
"""
STRING = "string"
INT64 = "int64"
FLOAT64 = "float64"
Expand Down

0 comments on commit f0ac52b

Please sign in to comment.