Replace Formatter<PyFormatContext<'_>> with PyFormatter (#6330)
This is a refactoring to use the type alias in more places. In the process, I had to fix and run generate.py. There are no functional changes.
This commit is contained in:
@@ -77,7 +77,7 @@ impl<'a> From<&AnyExpressionYield<'a>> for AnyNodeRef<'a> {
|
||||
}
|
||||
|
||||
impl Format<PyFormatContext<'_>> for AnyExpressionYield<'_> {
|
||||
fn fmt(&self, f: &mut Formatter<PyFormatContext<'_>>) -> FormatResult<()> {
|
||||
fn fmt(&self, f: &mut PyFormatter) -> FormatResult<()> {
|
||||
let keyword = if self.is_yield_from() {
|
||||
"yield from"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user