File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1111logger = 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
3332def expand_cmd (p : Dict ) -> Dict :
You can’t perform that action at this time.
0 commit comments