(obj)
return repr(obj)
Return the repr() of an object, special-casing types (internal helper).

    Copied from :mod:`typing` since collections.abc
    shouldn't depend on that module.
Return the repr() of an object, special-casing types (internal helper).
Return the repr () of an object special - casing types ( internal helper ) .
def _type_repr(obj):
    """Return the repr() of an object, special-casing types (internal helper).

    Copied from :mod:`typing` since collections.abc
    shouldn't depend on that module.
    """
    if isinstance(obj, GenericAlias):
        return repr(obj)
    if isinstance(obj, type):
        if obj.__module__ == 'builtins':
            return obj.__qualname__
        return f'{obj.__module__}.{obj.__qualname__}'
    if obj is Ellipsis:
        return '...'
    if isinstance(obj, FunctionType):
        return obj.__name__
    return repr(obj)
def _type_repr ( obj ) : if isinstance ( obj , GenericAlias ) : return repr ( obj ) if isinstance ( obj , type ) : if obj . __module__ == 'builtins' : return obj . __qualname__ return f'{obj.__module__}.{obj.__qualname__}' if obj is Ellipsis : return '...' if isinstance ( obj , FunctionType ) : return obj . __name__ return repr ( obj )