Skip to content

Commit

Permalink
Put f-string imports behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Aug 29, 2023
1 parent ecd36af commit e120c32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/ruff_python_parser/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ use unic_emoji_char::is_emoji_presentation;
use unic_ucd_ident::{is_xid_continue, is_xid_start};

use crate::lexer::cursor::{Cursor, EOF_CHAR};
#[cfg(feature = "pep-701")]
use crate::lexer::fstring::{FStringContext, FStringContextFlags};
use crate::lexer::indentation::{Indentation, Indentations};
use crate::{
Expand All @@ -50,6 +51,7 @@ use crate::{
};

mod cursor;
#[cfg(feature = "pep-701")]
mod fstring;
mod indentation;

Expand Down

0 comments on commit e120c32

Please sign in to comment.