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

Function assert_no_ipython_escape_command

crates/ruff_python_parser/src/lexer.rs:1956–1962  ·  view source on GitHub ↗
(tokens: &[Token])

Source from the content-addressed store, hash-verified

1954 }
1955
1956 fn assert_no_ipython_escape_command(tokens: &[Token]) {
1957 for token in tokens {
1958 if matches!(token.kind(), TokenKind::IpyEscapeCommand) {
1959 panic!("Unexpected escape command token at {:?}", token.range())
1960 }
1961 }
1962 }
1963
1964 #[test]
1965 fn test_ipython_escape_command_not_an_assignment() {

Calls

no outgoing calls