File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ Async checker Messages
29
29
Used when an async context manager is used with an object that does not
30
30
implement the async context management protocol. This message can't be
31
31
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'.
35
32
36
33
37
34
Bad-Chained-Comparison checker
@@ -1287,6 +1284,9 @@ Typecheck checker Messages
1287
1284
:invalid-slice-step (E1144): *Slice step cannot be 0 *
1288
1285
Used when a slice step is 0 and the object doesn't implement a custom
1289
1286
__getitem__ method.
1287
+ :async-context-manager-with-regular-with (E1145): *Context manager '%s' is async and should be used with 'async with'. *
1288
+ Used when an async context manager is used with a regular 'with' statement
1289
+ instead of 'async with'.
1290
1290
:keyword-arg-before-vararg (W1113): *Keyword argument before variable positional arguments list in the definition of %s function *
1291
1291
When defining a keyword argument before variable positional arguments, one
1292
1292
can end up in having multiple values passed for the aforementioned parameter
Original file line number Diff line number Diff line change 1
1
Add new check ``async-context-manager-with-regular-with`` to detect async context managers used with regular ``with`` statements instead of ``async with``.
2
2
3
- Refs #10999
3
+ Refs #10408
Original file line number Diff line number Diff line change 1
1
Add new checks for invalid uses of class patterns in :keyword:`match`.
2
+
2
3
* :ref:`invalid-match-args-definition` is emitted if :py:data:`object.__match_args__` isn't a tuple of strings.
3
4
* :ref:`too-many-positional-sub-patterns` if there are more positional sub-patterns than specified in :py:data:`object.__match_args__`.
4
5
* :ref:`multiple-class-sub-patterns` if there are multiple sub-patterns for the same attribute.
You can’t perform that action at this time.
0 commit comments