Skip to content

Commit a26a055

Browse files
authored
Fix Linter Error
"result" was unused, and there was a type error in the test because we're explicitly trying to cause a failure due to invalid file.
1 parent 0d5b17c commit a26a055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_set_key_no_file(tmp_path):
2424

2525
def test_set_key_invalid_file():
2626
with pytest.raises(TypeError):
27-
result = dotenv.set_key(None, "foo", "bar")
27+
dotenv.set_key(None, "foo", "bar") # type: ignore
2828

2929

3030
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)