Skip to content

Commit

Permalink
Fix typing in test
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Apr 10, 2022
1 parent 48850cd commit f38e5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darker/tests/test_highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_should_use_color_no_pygments(tmp_path, config, environ, cmdline, tty):
("color=true PY_COLORS=1 --color tty", "should_use_color() == True"),
],
)
def test_should_use_color_pygments(tmp_path: Path, params: str, expect: bool) -> None:
def test_should_use_color_pygments(tmp_path: Path, params: str, expect: str) -> None:
"""Color output is used only if correct configuration options are in place"""
with (tmp_path / "pyproject.toml").open("w") as pyproject:
print("[tool.darker]", file=pyproject)
Expand Down

0 comments on commit f38e5e2

Please sign in to comment.