Skip to content

Commit

Permalink
add type to variables to fix mypy precommit hook checks
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsonp committed Mar 24, 2024
1 parent 302681c commit cb15c63
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions dataprofiler/profilers/profiler_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ def __str__(self) -> str:
:return: str of the option properties
:rtype: str
"""
dict_string = {"CategoricalOptions": []}
dict_string: dict = {"CategoricalOptions": []}
for iter_option in [
a
for a in dir(self)
Expand Down Expand Up @@ -1219,7 +1219,7 @@ def __str__(self) -> str:
:return: str of the option properties
:rtype: str
"""
dict_string = {"RowStatisticsOptions": []}
dict_string: dict = {"RowStatisticsOptions": []}
for iter_option in [
a
for a in dir(self)
Expand Down Expand Up @@ -1284,7 +1284,7 @@ def __str__(self) -> str:
:return: str of the option properties
:rtype: str
"""
dict_string = {"DataLabelerOptions": []}
dict_string: dict = {"DataLabelerOptions": []}
for iter_option in [
a
for a in dir(self)
Expand Down Expand Up @@ -1445,7 +1445,7 @@ def __str__(self) -> str:
:return: str of the option properties
:rtype: str
"""
dict_string = {"TextProfilerOptions": []}
dict_string: dict = {"TextProfilerOptions": []}
for iter_option in [
a
for a in dir(self)
Expand Down Expand Up @@ -1582,7 +1582,7 @@ def __str__(self) -> str:
:return: str of the option properties
:rtype: str
"""
dict_string = {"StructuredOptions": []}
dict_string: dict = {"StructuredOptions": []}
for iter_option in [
a
for a in dir(self)
Expand Down Expand Up @@ -1751,7 +1751,7 @@ def __str__(self) -> str:
:return: str of the option properties
:rtype: str
"""
dict_string = {"UnstructuredOptions": []}
dict_string: dict = {"UnstructuredOptions": []}
for iter_option in [
a
for a in dir(self)
Expand Down Expand Up @@ -1846,7 +1846,9 @@ def __str__(self) -> str:
:return: str of the option presets and properties
:rtype: str
"""
return f"Presets: {str(self.presets)}\n {str(self.structured_options)}\n {str(self.unstructured_options)}"
return f"Presets: {str(self.presets)}\n \
{str(self.structured_options)}\n \
{str(self.unstructured_options)}"

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

0 comments on commit cb15c63

Please sign in to comment.