Skip to content

Commit cb15c63

Browse files
committed
add type to variables to fix mypy precommit hook checks
1 parent 302681c commit cb15c63

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

dataprofiler/profilers/profiler_options.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ def __str__(self) -> str:
976976
:return: str of the option properties
977977
:rtype: str
978978
"""
979-
dict_string = {"CategoricalOptions": []}
979+
dict_string: dict = {"CategoricalOptions": []}
980980
for iter_option in [
981981
a
982982
for a in dir(self)
@@ -1219,7 +1219,7 @@ def __str__(self) -> str:
12191219
:return: str of the option properties
12201220
:rtype: str
12211221
"""
1222-
dict_string = {"RowStatisticsOptions": []}
1222+
dict_string: dict = {"RowStatisticsOptions": []}
12231223
for iter_option in [
12241224
a
12251225
for a in dir(self)
@@ -1284,7 +1284,7 @@ def __str__(self) -> str:
12841284
:return: str of the option properties
12851285
:rtype: str
12861286
"""
1287-
dict_string = {"DataLabelerOptions": []}
1287+
dict_string: dict = {"DataLabelerOptions": []}
12881288
for iter_option in [
12891289
a
12901290
for a in dir(self)
@@ -1445,7 +1445,7 @@ def __str__(self) -> str:
14451445
:return: str of the option properties
14461446
:rtype: str
14471447
"""
1448-
dict_string = {"TextProfilerOptions": []}
1448+
dict_string: dict = {"TextProfilerOptions": []}
14491449
for iter_option in [
14501450
a
14511451
for a in dir(self)
@@ -1582,7 +1582,7 @@ def __str__(self) -> str:
15821582
:return: str of the option properties
15831583
:rtype: str
15841584
"""
1585-
dict_string = {"StructuredOptions": []}
1585+
dict_string: dict = {"StructuredOptions": []}
15861586
for iter_option in [
15871587
a
15881588
for a in dir(self)
@@ -1751,7 +1751,7 @@ def __str__(self) -> str:
17511751
:return: str of the option properties
17521752
:rtype: str
17531753
"""
1754-
dict_string = {"UnstructuredOptions": []}
1754+
dict_string: dict = {"UnstructuredOptions": []}
17551755
for iter_option in [
17561756
a
17571757
for a in dir(self)
@@ -1846,7 +1846,9 @@ def __str__(self) -> str:
18461846
:return: str of the option presets and properties
18471847
:rtype: str
18481848
"""
1849-
return f"Presets: {str(self.presets)}\n {str(self.structured_options)}\n {str(self.unstructured_options)}"
1849+
return f"Presets: {str(self.presets)}\n \
1850+
{str(self.structured_options)}\n \
1851+
{str(self.unstructured_options)}"
18501852

18511853
def _complete_presets(self) -> None:
18521854
self.set({"*.is_enabled": True})

0 commit comments

Comments
 (0)