def check_int_float_entry_value_type_compliance(int_float_kwargs):
    """Check whether the value complies with type.

    Parameters
    ==========
    int_float_kwargs (dict)
        contains keyword arguments to instantiate
        int float entry widget.
    """
    ### retrieve relevant values

    value = int_float_kwargs["value"]
    numeric_classes_hint = int_float_kwargs["numeric_classes_hint"]
    allow_none = int_float_kwargs.get("allow_none", False)

    ### gather allowed classes

    ## retrieve allowed numeric classes
    allowed_classes = ALLOWED_NUM_CLASSES[numeric_classes_hint]

    ## add NoneType if allowed
    if allow_none:
        allowed_classes = allowed_classes + (type(None),)

    ## check type

    if not isinstance(value, allowed_classes):

        msg = (
            "'value' provided ({}) for int float entry isn't"
            " compatible with allowed types you requested: {}"
        ).format(value, allowed_classes)

        raise TypeError(msg)
Check whether the value complies with type.

    Parameters
    ==========
    int_float_kwargs (dict)
        contains keyword arguments to instantiate
        int float entry widget.
    
nodezator/graphman/widget/utils.py