"""Check module for build type."""

# Official Libraries
from argparse import Namespace


# My Modules
from stobu.types.build import BuildType


__all__ = (
        'has_build_of',
        )



# Main
def has_build_of(args: Namespace, build: BuildType) -> bool:
    assert isinstance(args, Namespace)
    assert isinstance(build, BuildType)

    if BuildType.NOVEL is build:
        return args.novel
    elif BuildType.OUTLINE is build:
        return args.outline
    elif BuildType.PLOT is build:
        return args.plot
    elif BuildType.SCRIPT is build:
        return args.script
    elif BuildType.STRUCT is build:
        return args.struct
    elif BuildType.SCENE_INFO is build:
        return args.info
    elif BuildType.STATUS_INFO is build:
        return args.status
    else:
        return False

3bfeae601422c7e48ddb769cb634463dc325b9a6
<mask token>

<mask token>


def has_build_of(args: Namespace, build: BuildType) ->bool:
    assert isinstance(args, Namespace)
    assert isinstance(build, BuildType)
    if BuildType.NOVEL is build:
        return args.novel
    elif BuildType.OUTLINE is build:
        return args.outline
    elif BuildType.PLOT is build:
        return args.plot
    elif BuildType.SCRIPT is build:
        return args.script
    elif BuildType.STRUCT is build:
        return args.struct
    elif BuildType.SCENE_INFO is build:
        return args.info
    elif BuildType.STATUS_INFO is build:
        return args.status
    else:
        return False

<mask token>
__all__ = 'has_build_of',


def has_build_of(args: Namespace, build: BuildType) ->bool:
    assert isinstance(args, Namespace)
    assert isinstance(build, BuildType)
    if BuildType.NOVEL is build:
        return args.novel
    elif BuildType.OUTLINE is build:
        return args.outline
    elif BuildType.PLOT is build:
        return args.plot
    elif BuildType.SCRIPT is build:
        return args.script
    elif BuildType.STRUCT is build:
        return args.struct
    elif BuildType.SCENE_INFO is build:
        return args.info
    elif BuildType.STATUS_INFO is build:
        return args.status
    else:
        return False

<mask token>
from argparse import Namespace
from stobu.types.build import BuildType
__all__ = 'has_build_of',


def has_build_of(args: Namespace, build: BuildType) ->bool:
    assert isinstance(args, Namespace)
    assert isinstance(build, BuildType)
    if BuildType.NOVEL is build:
        return args.novel
    elif BuildType.OUTLINE is build:
        return args.outline
    elif BuildType.PLOT is build:
        return args.plot
    elif BuildType.SCRIPT is build:
        return args.script
    elif BuildType.STRUCT is build:
        return args.struct
    elif BuildType.SCENE_INFO is build:
        return args.info
    elif BuildType.STATUS_INFO is build:
        return args.status
    else:
        return False

"""Check module for build type."""

# Official Libraries
from argparse import Namespace


# My Modules
from stobu.types.build import BuildType


__all__ = (
        'has_build_of',
        )



# Main
def has_build_of(args: Namespace, build: BuildType) -> bool:
    assert isinstance(args, Namespace)
    assert isinstance(build, BuildType)

    if BuildType.NOVEL is build:
        return args.novel
    elif BuildType.OUTLINE is build:
        return args.outline
    elif BuildType.PLOT is build:
        return args.plot
    elif BuildType.SCRIPT is build:
        return args.script
    elif BuildType.STRUCT is build:
        return args.struct
    elif BuildType.SCENE_INFO is build:
        return args.info
    elif BuildType.STATUS_INFO is build:
        return args.status
    else:
        return False
