aliles / funcsigs

Python function signatures package for Python 2.6, 2.7 and 3.2+
http://pypi.python.org/pypi/funcsigs
Other
48 stars 33 forks source link

Add a failing test for class method with varargs only #22

Closed mfield closed 5 years ago

mfield commented 8 years ago

I got here from https://github.com/testing-cabal/mock/issues/338. It seems like a poor assumption that the first argument to any type of class method is going to be positional_only self (https://github.com/aliles/funcsigs/blob/master/funcsigs/__init__.py#L61). The @contextmanager decorator for example returns a function with a signature like (*args. **kwargs) since it might be used on either a function or a class method.

rbtcollins commented 8 years ago

Hi thanks; we've actually got a fork over at testing-cabal/funcsigs now - could you perhaps make a PR against that instead? Cheers.