Skip to content

Commit 25dd143

Browse files
closes #129
1 parent c087c21 commit 25dd143

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/f3dasm/_src/design/parameter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def _check_types(self):
133133
self.lower_bound, float) or not isinstance(
134134
self.upper_bound, float):
135135
raise TypeError(
136-
f"Expect float, got {type(self.lower_bound)} \
137-
and {type(self.upper_bound)}")
136+
f"Expect float, got {type(self.lower_bound).__name__} \
137+
and {type(self.upper_bound).__name__}")
138138

139139
def _check_range(self):
140140
"""Check if the lower boundary is lower than the higher boundary"""
@@ -174,8 +174,8 @@ def _check_types(self):
174174
if not isinstance(self.lower_bound, int) or not isinstance(
175175
self.upper_bound, int):
176176
raise TypeError(
177-
f"Expect integer, got {type(self.lower_bound)} and \
178-
{type(self.upper_bound)}")
177+
f"Expect integer, got {type(self.lower_bound).__name__} and \
178+
{type(self.upper_bound).__name__}")
179179

180180
def _check_range(self):
181181
"""Check if the lower boundary is lower than the higher boundary"""

0 commit comments

Comments
 (0)