MCPcopy Create free account
hub / github.com/astral-sh/ruff / is_known_future_feature

Function is_known_future_feature

crates/ruff_python_parser/src/semantic_errors.rs:1254–1268  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

1252}
1253
1254fn is_known_future_feature(name: &str) -> bool {
1255 matches!(
1256 name,
1257 "nested_scopes"
1258 | "generators"
1259 | "division"
1260 | "absolute_import"
1261 | "with_statement"
1262 | "print_function"
1263 | "unicode_literals"
1264 | "barry_as_FLUFL"
1265 | "generator_stop"
1266 | "annotations"
1267 )
1268}
1269
1270#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, get_size2::GetSize)]
1271pub enum LazyImportKind {

Callers 1

check_stmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected