Skip to content

Commit f330897

Browse files
committed
refactor(expandshell): Ignore PTH111 and orient to all strings
1 parent e2b4b36 commit f330897

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/tmuxp/workspace/loader.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,22 @@
1111
logger = logging.getLogger(__name__)
1212

1313

14-
def expandshell(_path):
15-
"""
16-
Return expanded path based on user's ``$HOME`` and ``env``.
14+
def expandshell(value: str) -> str:
15+
"""Returned wih variables expanded based on user's ``$HOME`` and ``env``.
1716
18-
:py:func:`os.path.expanduser` and :py:func:`os.path.expandvars`.
17+
:py:func:`os.path.expanduser` and :py:fubasednc:`os.path.expandvars`.
1918
2019
Parameters
2120
----------
22-
path : str
23-
path to expand
21+
value : str
22+
value to expand
2423
2524
Returns
2625
-------
2726
str
28-
path with shell variables expanded
27+
value with shell variables expanded
2928
"""
30-
return os.path.expandvars(os.path.expanduser(_path))
29+
return os.path.expandvars(os.path.expanduser(value)) # NOQA: PTH111
3130

3231

3332
def expand_cmd(p: Dict) -> Dict:

0 commit comments

Comments
 (0)