Greetings!

I have the following function:

    def _convert_auto(self, value):
        if value.args or value.kwds or value.value is _auto_null:
            ...
            if source_len < target_len :
                prev_values = []
                ...
                gnv = self._generate_next_value
                if self._auto_args:
                    ...
                    values = gnv(key, self._start, len(self._member_names), 
prev_values, *values)
                else:
                    values = gnv(key, self._start, len(self._member_names), 
prev_values)
                ...
        return value

Towards the bottom there are two calls that both start with

    values = gnv(key, self._start, ...

The variable `key` does not exist -- is PyFlakes supposed to catch that?

--
~Ethan~
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-le...@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/
Member address: arch...@mail-archive.com

Reply via email to