Closed TimKingNF closed 5 years ago
Hey @TimKingNF, thanks for taking a stab at it already. I'll write some tests based off your examples and then we can work through fixing them.
The latest changes should fix all the cases you referenced except for *
-import and building an enum from an invalid name like Enum.Value("DOES_NOT_EXIST")
, which raises ValueError
at runtime. I might leave the second case for now, but I'll fix the *
import before pushing a new release.
Thanks for your commits. This answers my questions.
It's seem likes not support outer scope
Enum
. Inaddressbook.proto
, I add something like this.And I try to exec
pylint <follow_file>
Finally I try to modifies
__init__.py
like this.Const
Value import is ok. ButEnum
import raise error.Look
Todo
, I don't know how to write the following code.Do you have any good ideas? Thanks very much.