File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -633,9 +633,9 @@ Available Context Managers
633633 - ``category ``: the warning category (a subclass of :exc: `Warning `)
634634 - ``filename ``: the file name where the warning occurred (str)
635635 - ``lineno ``: the line number in the file (int)
636- - ``file ``: the file object used for output (if any)
637- - ``line ``: the line of source code (if available)
638- - ``source ``: the original object that generated the warning (if available)
636+ - ``file ``: the file object used for output (if any), or `` None ``
637+ - ``line ``: the line of source code (if available), or `` None ``
638+ - ``source ``: the original object that generated the warning (if available), or `` None ``
639639
640640 The type of these objects is not specified and may change; only the presence of these attributes is guaranteed.
641641
You can’t perform that action at this time.
0 commit comments