File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,8 @@ def _check_types(self):
133
133
self .lower_bound , float ) or not isinstance (
134
134
self .upper_bound , float ):
135
135
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__ } " )
138
138
139
139
def _check_range (self ):
140
140
"""Check if the lower boundary is lower than the higher boundary"""
@@ -174,8 +174,8 @@ def _check_types(self):
174
174
if not isinstance (self .lower_bound , int ) or not isinstance (
175
175
self .upper_bound , int ):
176
176
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__ } " )
179
179
180
180
def _check_range (self ):
181
181
"""Check if the lower boundary is lower than the higher boundary"""
You can’t perform that action at this time.
0 commit comments