def default_strlen ( strlen = None ) : if strlen is not None : _default_types_status [ 'default_strlen' ] = strlen # update the typeDicts as needed lstring_as_obj ( _default_types_status [ 'lstring_as_obj' ] ) ilwd_as_int ( _default_types_status [ 'ilwd_as_int' ] ) return _default_types_status [ 'default_strlen' ]
python typehint with default
Sets the default string length for lstring and ilwd : char if they are treated as strings . Default is 50 .
def default_strlen(strlen=None):
    """Sets the default string length for lstring and ilwd:char, if they are
    treated as strings. Default is 50.
    """
    if strlen is not None:
        _default_types_status['default_strlen'] = strlen
        # update the typeDicts as needed
        lstring_as_obj(_default_types_status['lstring_as_obj'])
        ilwd_as_int(_default_types_status['ilwd_as_int'])
    return _default_types_status['default_strlen']