mordred/_base/descriptor.py
def is_descriptor_class(desc, include_abstract=False):
    r"""Check calculatable descriptor class or not.

    Returns:
        bool

    """
    return (
        isinstance(desc, type)
        and issubclass(desc, Descriptor)
        and (True if include_abstract else not inspect.isabstract(desc))
    )
def is_descriptor_class(desc, include_abstract=False):
    r"""Check calculatable descriptor class or not.

    Returns:
        bool

    """
    return (
        isinstance(desc, type)
        and issubclass(desc, Descriptor)
        and (True if include_abstract else not inspect.isabstract(desc))
    )
def is_descriptor_class ( desc , include_abstract = False ) : return ( isinstance ( desc , type ) and issubclass ( desc , Descriptor ) and ( True if include_abstract else not inspect . isabstract ( desc ) ) )
r"""Check calculatable descriptor class or not.

    Returns:
        bool
r Check calculatable descriptor class or not .