New submission from Erik Byström:

"a class" should most probably be replaced by "an instance" in the 
documentation for create_autospec.

"You can use a class as the spec for an instance object by passing 
instance=True. The returned mock will only be callable if instances of the mock 
are callable."

https://docs.python.org/3/library/unittest.mock.html#unittest.mock.create_autospec

----------
assignee: docs@python
components: Documentation
messages: 294993
nosy: Erik Byström, docs@python
priority: normal
severity: normal
status: open
title: typo in documentation for create_autospec
type: enhancement
versions: Python 3.6

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

Reply via email to