mypy example.py
example.py:5: error: Too few arguments for "get" [call-arg]
operation = binding.get('Method1')
The underlying cause of this seems to be the type annotation here: https://github.com/mvantellingen/python-zeep/blob/master/src/zeep/wsdl/wsdl.py#L184
I believe this should read:
```python
self.bindings = {} # type: typing.Dict[str, Binding]
Otherwise, mypy thinks the value side of of the bindings dictionary is Type[Binding] rather than Binding itself, which means it could contain actual Binding classes, not instances of the Binding class.
client = Client('http://www.soapclient.com/xml/soapresponder.wsdl') binding: Binding = client.wsdl.bindings['{http://www.SoapClient.com/xml/SoapResponder.wsdl}SoapResponderBinding'] operation = binding.get('Method1')
mypy example.py example.py:5: error: Too few arguments for "get" [call-arg] operation = binding.get('Method1')
Otherwise, mypy thinks the value side of of the bindings dictionary is
Type[Binding]
rather thanBinding
itself, which means it could contain actual Binding classes, not instances of the Binding class.