Commit 3fb9680 1 parent 52fd656 commit 3fb9680 Copy full SHA for 3fb9680
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import typing
10
10
from abc import ABC , abstractmethod
11
- from os .path import exists
12
11
from datetime import datetime
12
+ from os .path import exists
13
13
14
14
import yaml
15
15
from numpy import floating
@@ -21,7 +21,9 @@ def raise_value_error_if_parameter_has_unexpected_type(
21
21
):
22
22
"""Function raises ValueError exception if parameter has unexpected type"""
23
23
time_now = datetime .now ()
24
- print (f"!_! started checking { parameter_name } with expected type { expected_type } at { time_now } " )
24
+ print (
25
+ f"!_! started checking { parameter_name } with expected type { expected_type } value:{ parameter } at { time_now } "
26
+ )
25
27
if expected_type == float :
26
28
expected_type = (int , float , floating )
27
29
if not isinstance (parameter , expected_type ):
@@ -30,7 +32,7 @@ def raise_value_error_if_parameter_has_unexpected_type(
30
32
f"Unexpected type of '{ parameter_name } ' parameter, expected: { expected_type } , actual: { parameter_type } "
31
33
)
32
34
time_now = datetime .now ()
33
- print (f"!_! finished checking { parameter_name } with expected type { expected_type } value: { parameter } at { time_now } " )
35
+ print (f"!_! finished checking { parameter_name } with expected type { expected_type } " )
34
36
35
37
36
38
def check_nested_elements_type (iterable , parameter_name , expected_type ):
You can’t perform that action at this time.
0 commit comments