Skip to content

Commit 123b18b

Browse files
committed
fix typos
1 parent 676953c commit 123b18b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

ssh_utilities/remote/path.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from os import fspath
66
from os.path import samestat
77
from pathlib import Path, PurePosixPath, PureWindowsPath # type: ignore
8-
from typing import TYPE_CHECKING, Any, Callable, Optional
98
from sys import version_info as python_version
9+
from typing import TYPE_CHECKING, Any, Callable, Optional
1010

1111
from ..utils import for_all_methods
1212

@@ -118,6 +118,7 @@ def rename(self, *args, **kwargs):
118118
def replace(self, *args, **kwargs):
119119
return self.c.os.replace(*args, **kwargs)
120120

121+
121122
class _Template:
122123

123124
def __init__(self, accessor: _SSHAccessor) -> None:
@@ -126,10 +127,10 @@ def __init__(self, accessor: _SSHAccessor) -> None:
126127

127128
@for_all_methods(_to_ssh_path, subclasses=True, exclude=DEC_EXCLUDE)
128129
class SSHPath(Path):
129-
"""Object porviding similar API to Pathlib.Path but for remote server.
130+
"""Object providing similar API to Pathlib.Path but for remote server.
130131
131132
The for all methods wrapper will wrap whole pathlib library and thus will
132-
always try to cas every path to SSHPath, so logic must be emplyed in
133+
always try to cast every path to SSHPath, so logic must be emplyed in
133134
wrapper to prevent this.
134135
135136
Parameters
@@ -141,16 +142,9 @@ class SSHPath(Path):
141142
142143
Warnings
143144
--------
144-
Not all methods are implemented! Some rather obscure had to be left out
145-
due to the nature of ssh and laif python_version >= (3, 10):zyness of the author
146-
147145
Some methods have changed signature from classmethod -> instancemethod
148-
since old approach was not vaiable in this application. Most notably:
146+
since old approach was not vaiable in this application. These are:
149147
home() and cwd().
150-
151-
Raises
152-
------
153-
NotImplementedError when on some methods that have not been implemented.
154148
"""
155149

156150
_flavour = Any

0 commit comments

Comments
 (0)