def get_fullname(x: Union[FuncBase, SymbolNode]) -> str:
    """
    Used for compatibility with mypy 0.740; can be dropped once support for 0.740 is dropped.
    """
    fn = x.fullname
    if callable(fn):  # pragma: no cover
        return fn()
    return fn

    Used for compatibility with mypy 0.740; can be dropped once support for 0.740 is dropped.
    
pydantic/v1/mypy.py