Skip to content

Commit 68ab16f

Browse files
authored
Fix docs (#10588)
1 parent 42c0131 commit 68ab16f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

doc/user_guide/checkers/features.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ Async checker Messages
2929
Used when an async context manager is used with an object that does not
3030
implement the async context management protocol. This message can't be
3131
emitted when using Python < 3.5.
32-
:async-context-manager-with-regular-with (E1145): *Context manager '%s' is async and should be used with 'async with'.*
33-
Used when an async context manager is used with a regular 'with' statement
34-
instead of 'async with'.
3532

3633

3734
Bad-Chained-Comparison checker
@@ -1281,6 +1278,9 @@ Typecheck checker Messages
12811278
:invalid-slice-step (E1144): *Slice step cannot be 0*
12821279
Used when a slice step is 0 and the object doesn't implement a custom
12831280
__getitem__ method.
1281+
:async-context-manager-with-regular-with (E1145): *Context manager '%s' is async and should be used with 'async with'.*
1282+
Used when an async context manager is used with a regular 'with' statement
1283+
instead of 'async with'.
12841284
:keyword-arg-before-vararg (W1113): *Keyword argument before variable positional arguments list in the definition of %s function*
12851285
When defining a keyword argument before variable positional arguments, one
12861286
can end up in having multiple values passed for the aforementioned parameter
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Add new check ``async-context-manager-with-regular-with`` to detect async context managers used with regular ``with`` statements instead of ``async with``.
22

3-
Refs #10999
3+
Refs #10408

doc/whatsnew/fragments/10559.new_check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Add new checks for invalid uses of class patterns in :keyword:`match`.
2+
23
* :ref:`invalid-match-args-definition` is emitted if :py:data:`object.__match_args__` isn't a tuple of strings.
34
* :ref:`too-many-positional-sub-patterns` if there are more positional sub-patterns than specified in :py:data:`object.__match_args__`.
45
* :ref:`multiple-class-sub-patterns` if there are multiple sub-patterns for the same attribute.

0 commit comments

Comments
 (0)