Chris Withers <ch...@withers.org> added the comment:

Given that `mock.patch` is being used incorrectly here, the error message seems 
clear enough: It's saying there's a `Foo` object in place, and `rsplit` gives a 
strong indication that a string was expected.

Would adding type hints in mock.py be a resolution for this?

I'd be fine to see this bug closed with "wontfix", but will leave it open for 
now in case others feel strongly differently.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41403>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to