Skip to content

"Undefined name" on using six, which is in typeshed #43

Closed
@gnprice

Description

@gnprice

Trying to run Pyre on Zulip, I get the following errors (among many others):

zthumbor/loaders/helpers.py:64:11 Undefined name [18]: Global name `six` is undefined.
zthumbor/loaders/helpers.py:64:20 Undefined name [18]: Global name `six` is undefined.
zthumbor/loaders/helpers.py:70:11 Undefined name [18]: Global name `six` is undefined.
zthumbor/loaders/helpers.py:70:20 Undefined name [18]: Global name `six` is undefined.

This puzzles me because six is in typeshed -- which Pyre is supposed to refer to, right? In fact, here's the relevant import line:

from six.moves.urllib.parse import urlparse, parse_qs

and indeed that module, and those names within it, are there in typeshed.

I don't have any good ideas for what's going wrong in this instance. If there isn't an obvious (to you as the Pyre developers) thing that this could be, I can try refining out a minimal repro case.

Metadata

Metadata

Assignees

Labels

enhancementImprovements and feature requests

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions