Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type information for MockerCore methods seems incorrect #209

Closed
j-ulrich opened this issue Aug 10, 2022 · 1 comment
Closed

Type information for MockerCore methods seems incorrect #209

j-ulrich opened this issue Aug 10, 2022 · 1 comment

Comments

@j-ulrich
Copy link

The type information for the MockerCore class (mocker.pyi) seems incorrect:

It pretends that the methods register_uri(), request(), get(), post() etc. return a requests.Response object. But actually, they return a requests_mock.adapter._Matcher object.

@jamielennox
Copy link
Owner

jamielennox commented Aug 30, 2022

Hi, Thank you. I had found this one and have merged the fix in #199. I'll release it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants