Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Jan 24, 2025
1 parent b1c451b commit 44b1bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osbot_utils/type_safe/shared/Type_Safe__Validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def validate_type_immutability(self, var_name: str, var_type: Any) -> None:
type_safe_raise_exception.immutable_type_error(var_name, var_type)

def validate_variable_type(self, var_name, var_type, var_value): # Validate type compatibility
if var_type and not isinstance(var_value, var_type):
if type(var_type) is type and not isinstance(var_value, var_type):
type_safe_raise_exception.type_mismatch_error(var_name, var_type, type(var_value))

type_safe_validation = Type_Safe__Validation()

0 comments on commit 44b1bdf

Please sign in to comment.