Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

local variables don't show up in completion #734

@karthiknadig

Description

@karthiknadig

image

Repro code:

from flake8.formatting.base import BaseFormatter
from xml.etree import ElementTree as ET

class Flake8formatter(BaseFormatter):
    def format(self, error):
        return '{0!r}'.format(error)
   
    def show_benchmarks(self, benchmarks):
        for benchmark, value in benchmarks:
            if ben
            testcase = ET.Element('benchmark')
            testcase.attrib['classname'] = 'flake8.benchmarks'
            testcase.attrib['name'] = benchmark
            testcase.attrib['value'] = value

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions