style: remove trailing whitespace

Removed all trailing whitespace.
This commit is contained in:
jakob.scheid committed 2026-09-18 17:02:09 +02:00
1 parent caa8e04047
commit 23e450e9df
8 files changed
+28 -28

No files matched your search

+6 -6
View File
@@ -70,7 +70,7 @@ class ExistingFile(pathlib.Path):
def _quote(string: str, quotation_mark: str) -> str:
'''
Quotes a string.
:param string: The string to quote
:type string: str
:param quotation_mark: The quotation mark
@@ -98,7 +98,7 @@ def human_readable_list(
:type final_separator: str
:param quotation_mark: The characters that are inserted before and
after an element. Default is ''.
:return: The human-readable list.
:rtype: str
'''
@@ -106,11 +106,11 @@ def human_readable_list(
# empty list
if not ls:
return ''
# list with one element
if len(ls) == 1:
return _quote(str(ls[0]), quotation_mark)
return ', '.join(
[
_quote(
@@ -165,7 +165,7 @@ def assert_that_is_instance(
obj
).__name__}\''
)
def non_empty_str(value: Union[str, None]) -> Union[str, None]:
'''
Returns the value or ``None``.
@@ -184,7 +184,7 @@ def non_empty_str(value: Union[str, None]) -> Union[str, None]:
if value is None:
return None
if value.strip() == '':
return None