Closed aviskase closed 5 years ago
@aviskase That's definitely a bug in the type hints provided in the doc strings. As you noticed I was working on a branch to provide more consistent type checking, but I got not enough time to cross-check the whole library (including docstrings).
If you could open a PR that would be really great ;)
Is there any reason why
SwaggerClient.from_url
andSwaggerClient.from_spec
haveSpec
as return type instead ofSwaggerClient
?https://github.com/Yelp/bravado/blob/384db8ae6e3950edc7cfeb2ba68c50273ceedcd7/bravado/client.py#L120
https://github.com/Yelp/bravado/blob/384db8ae6e3950edc7cfeb2ba68c50273ceedcd7/bravado/client.py#L91
If it's a bug, I can do a pull request, but as I understand with #403 there is a possibility that someone is already working on adding and fixing typing for
client
?