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):
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"""
You can’t perform that action at this time.
0 commit comments