(arg, module=None)
return arg
For converting None to type(None), and strings to ForwardRef.
For converting None to type(None), and strings to ForwardRef.
For converting None to type ( None ) and strings to ForwardRef .
def _type_convert(arg, module=None):
    """For converting None to type(None), and strings to ForwardRef."""
    if arg is None:
        return type(None)
    if isinstance(arg, str):
        return ForwardRef(arg, module=module)
    return arg
def _type_convert ( arg , module = None ) : if arg is None : return type ( None ) if isinstance ( arg , str ) : return ForwardRef ( arg , module = module ) return arg