You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function bind() can't be defined with self as its own parameter - it conflicts with binds that pass self in. Instead it needs to take _args, *_kwargs, and pull self out of args[0].
I'll throw up a patch in alittle, for now (in mock), I'm monkeypatching to fix it.
The text was updated successfully, but these errors were encountered:
rbtcollins
added a commit
to rbtcollins/funcsigs
that referenced
this issue
Jul 9, 2015
I have a method like so:
class F:
def f(a, self):
pass
signature(partial(F.f, None)).bind(self=10)
fails, due to receiving self too many times.
The function bind() can't be defined with self as its own parameter - it conflicts with binds that pass self in. Instead it needs to take _args, *_kwargs, and pull self out of args[0].
I'll throw up a patch in alittle, for now (in mock), I'm monkeypatching to fix it.
The text was updated successfully, but these errors were encountered: