Loading black.py +6 −0 Changes for black.py: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -296,6 +296,12 @@ def read_pyproject_toml( if not config: return None target_version = config.get("target_version") if target_version is not None and not isinstance(target_version, list): raise click.BadOptionUsage( "target-version", f"Config key target-version must be a list" ) default_map: Dict[str, Any] = {} if ctx.default_map: default_map.update(ctx.default_map) Loading Loading
black.py +6 −0 Changes for black.py: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -296,6 +296,12 @@ def read_pyproject_toml( if not config: return None target_version = config.get("target_version") if target_version is not None and not isinstance(target_version, list): raise click.BadOptionUsage( "target-version", f"Config key target-version must be a list" ) default_map: Dict[str, Any] = {} if ctx.default_map: default_map.update(ctx.default_map) Loading