mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Make it more obvious that warnings.catch_warnings() and its arguments should be considered keyword-only.
This commit is contained in:
parent
15ad6c0f2b
commit
3dffcd1a72
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ Available Functions
|
||||||
Available Classes
|
Available Classes
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
.. class:: catch_warnings([record=False[, module=None]])
|
.. class:: catch_warnings([\*, record=False[, module=None]])
|
||||||
|
|
||||||
A context manager that guards the warnings filter from being permanently
|
A context manager that guards the warnings filter from being permanently
|
||||||
mutated. The manager returns an instance of :class:`WarningsRecorder`. The
|
mutated. The manager returns an instance of :class:`WarningsRecorder`. The
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue