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:1355–1369  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

1353}
1354
1355fn is_known_future_feature(name: &str) -> bool {
1356 matches!(
1357 name,
1358 "nested_scopes"
1359 | "generators"
1360 | "division"
1361 | "absolute_import"
1362 | "with_statement"
1363 | "print_function"
1364 | "unicode_literals"
1365 | "barry_as_FLUFL"
1366 | "generator_stop"
1367 | "annotations"
1368 )
1369}
1370
1371#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, get_size2::GetSize)]
1372pub enum LazyImportKind {

Callers 1

check_stmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected