Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ use crate::checkers::ast::Checker;
/// username = await loop.run_in_executor(None, input, "Username:")
/// ```
#[derive(ViolationMetadata)]
#[violation_metadata(preview_since = "0.12.12")]
#[violation_metadata(stable_since = "0.15.0")]
pub(crate) struct BlockingInputInAsyncFunction;

impl Violation for BlockingInputInAsyncFunction {
#[derive_message_formats]
fn message(&self) -> String {
"Blocking call to input() in async context".to_string()
"Blocking call to `input()` in async context".to_string()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs
---
ASYNC250 Blocking call to input() in async context
ASYNC250 Blocking call to `input()` in async context
--> ASYNC250.py:7:9
|
6 | async def foo():
Expand All @@ -10,7 +10,7 @@ ASYNC250 Blocking call to input() in async context
8 | input("hello world") # ASYNC250
|

ASYNC250 Blocking call to input() in async context
ASYNC250 Blocking call to `input()` in async context
--> ASYNC250.py:8:5
|
6 | async def foo():
Expand All @@ -19,7 +19,7 @@ ASYNC250 Blocking call to input() in async context
| ^^^^^
|

ASYNC250 Blocking call to input() in async context
ASYNC250 Blocking call to `input()` in async context
--> ASYNC250.py:21:5
|
20 | async def foo():
Expand Down