[New-bugs-announce] [issue30548] typo in documentation for create_autospec

Erik Byström report at bugs.python.org
Fri Jun 2 05:06:21 EDT 2017


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 at python
components: Documentation
messages: 294993
nosy: Erik Byström, docs at python
priority: normal
severity: normal
status: open
title: typo in documentation for create_autospec
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30548>
_______________________________________


More information about the New-bugs-announce mailing list