Skip to content

Missing definitions for visit_TemplateStr and visit_Interpolation in ast module #15929

Description

@correctmost

Sample code

import ast
from typing import override

class Visitor(ast.NodeVisitor):
    @override
    def visit_Interpolation(self, node: ast.Interpolation) -> None:  # error: Method "visit_Interpolation" is marked as an override, but no base method was found with this name  [misc]
        pass

    @override
    def visit_TemplateStr(self, node: ast.TemplateStr) -> None:  # error: Method "visit_TemplateStr" is marked as an override, but no base method was found with this name  [misc]
        pass

Docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions