def setup_schema(args: argparse.Namespace, custom_schema_callback: Optional[Callable[([], None)]]) -> None:
    if (custom_schema_callback is not None):
        custom_schema_callback()
    elif args.enable_ext:
        with pkg_resources.resource_stream(__name__, 'extensions.yml') as res:
            ext10 = res.read().decode('utf-8')
        with pkg_resources.resource_stream(__name__, 'extensions-v1.1.yml') as res:
            ext11 = res.read().decode('utf-8')
        use_custom_schema('v1.0', 'http://commonwl.org/cwltool', ext10)
        use_custom_schema('v1.1', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2.0-dev1', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2.0-dev2', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2.0-dev3', 'http://commonwl.org/cwltool', ext11)
    else:
        use_standard_schema('v1.0')
        use_standard_schema('v1.1')
        use_standard_schema('v1.2')
        use_standard_schema('v1.2.0-dev1')
        use_standard_schema('v1.2.0-dev2')
        use_standard_schema('v1.2.0-dev3')
def setup_schema(args: argparse.Namespace, custom_schema_callback: Optional[Callable[([], None)]]) -> None:
    if (custom_schema_callback is not None):
        custom_schema_callback()
    elif args.enable_ext:
        with pkg_resources.resource_stream(__name__, 'extensions.yml') as res:
            ext10 = res.read().decode('utf-8')
        with pkg_resources.resource_stream(__name__, 'extensions-v1.1.yml') as res:
            ext11 = res.read().decode('utf-8')
        use_custom_schema('v1.0', 'http://commonwl.org/cwltool', ext10)
        use_custom_schema('v1.1', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2.0-dev1', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2.0-dev2', 'http://commonwl.org/cwltool', ext11)
        use_custom_schema('v1.2.0-dev3', 'http://commonwl.org/cwltool', ext11)
    else:
        use_standard_schema('v1.0')
        use_standard_schema('v1.1')
        use_standard_schema('v1.2')
        use_standard_schema('v1.2.0-dev1')
        use_standard_schema('v1.2.0-dev2')
        use_standard_schema('v1.2.0-dev3')