Closed mfield closed 5 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.
self
@contextmanager
(*args. **kwargs)
Hi thanks; we've actually got a fork over at testing-cabal/funcsigs now - could you perhaps make a PR against that instead? Cheers.
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.