Skip to content

Commit debcde0

Browse files
FGtatsurobfredl
authored andcommitted
self_obj is no longer passed. (#313)
1 parent 8d81cff commit debcde0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

neovim/api/common.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ class RemoteMap(object):
6969
It is used to provide a dict-like API to vim variables and options.
7070
"""
7171

72-
def __init__(self, obj, get_method, set_method=None, self_obj=None):
73-
"""Initialize a RemoteMap with session, getter/setter and self_obj."""
72+
def __init__(self, obj, get_method, set_method=None):
73+
"""Initialize a RemoteMap with session, getter/setter."""
7474
self._get = functools.partial(obj.request, get_method)
7575
self._set = None
7676
if set_method:
@@ -120,17 +120,13 @@ class RemoteSequence(object):
120120
sequence instance, and the expression `nvim.windows[0]` is translated to
121121
session.request('nvim_list_wins')[0].
122122
123-
It can also receive an optional self_obj that will be passed as first
124-
argument of the request. For example, `tabpage.windows[0]` is translated
125-
to: session.request('nvim_tabpage_list_wins', tabpage_instance)[0].
126-
127123
One important detail about this class is that all methods will fetch the
128124
sequence into a list and perform the necessary manipulation
129125
locally(iteration, indexing, counting, etc).
130126
"""
131127

132128
def __init__(self, session, method):
133-
"""Initialize a RemoteSequence with session, method and self_obj."""
129+
"""Initialize a RemoteSequence with session, method."""
134130
self._fetch = functools.partial(session.request, method)
135131

136132
def __len__(self):

0 commit comments

Comments
 (0)