Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Mar 13, 2024
1 parent 31aac0f commit c234bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions gertils/pathtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def to_string(self) -> str:
class PathWrapperException(Exception):
"""Exception subtype for working with paths with a particular property"""

pass


class ExtantFile(PathWrapper):
"""Wrapper around a path that validates it as a file which exists"""
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pathtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""Tests for core utilities for working with paths"""

from dataclasses import dataclass, FrozenInstanceError
from dataclasses import FrozenInstanceError, dataclass
from pathlib import Path
from typing import *

Expand Down Expand Up @@ -78,7 +78,7 @@ def test_path_wrapper_immutability(tmp_path, parameterisation):
wrapper = parameterisation.wrap_type(good_path)
with pytest.raises(FrozenInstanceError) as error_context:
wrapper.path = wrapper.path
assert str(error_context.value) == f"cannot assign to field 'path'"
assert str(error_context.value) == "cannot assign to field 'path'"


@pytest.mark.parametrize(["wrap_type", "prepare_path"], PATH_PREPARATIONS.items())
Expand Down

0 comments on commit c234bc6

Please sign in to comment.