Skip to content

Commit a4dcc3f

Browse files
thomFichteFoll
authored andcommitted
Fix mypy complaints.
1 parent 4ab5f3b commit a4dcc3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

st3/sublime_lib/resource_path.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ def relative_to(self, *other):
263263
264264
:raise ValueError: if this path is not a descendant of `other`.
265265
"""
266-
other = ResourcePath(*other)
267-
other_len = len(other.parts)
266+
other_path = ResourcePath(*other)
267+
other_len = len(other_path.parts)
268268

269-
if other.parts == self._parts[:other_len]:
269+
if other_path.parts == self._parts[:other_len]:
270270
return self._parts[other_len:]
271271
else:
272-
raise ValueError("{!s} does not start with {!s}".format(self, other))
272+
raise ValueError("{!s} does not start with {!s}".format(self, other_path))
273273

274274
def with_name(self, name):
275275
"""
@@ -305,7 +305,7 @@ def remove_suffix(self, suffix=None, *, must_remove=True):
305305
new_name = self.stem
306306
else:
307307
if isinstance(suffix, str):
308-
suffixes = (suffix,)
308+
suffixes = [suffix]
309309
else:
310310
suffixes = sorted(suffix, key=len, reverse=True)
311311

0 commit comments

Comments
 (0)