parameters: (tp)
docstring: Returns true if `tp` is a typing forward reference.
docstring_summary: Returns true if `tp` is a typing forward reference.
docstring_tokens: Returns true if tp is a typing forward reference .
function: def is_forward_ref(tp):
    """Returns true if `tp` is a typing forward reference."""
    if hasattr(typing, 'ForwardRef'):
      return isinstance(tp, typing.ForwardRef)
    elif hasattr(typing, '_ForwardRef'):
      return isinstance(tp, typing._ForwardRef)  # pylint: disable=protected-access
    else:
      return False
function_tokens: def is_forward_ref ( tp ) : if hasattr ( typing , 'ForwardRef' ) : return isinstance ( tp , typing . ForwardRef ) elif hasattr ( typing , '_ForwardRef' ) : return isinstance ( tp , typing . _ForwardRef ) # pylint: disable=protected-access else : return False