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

Conversation

@mbjorge
Copy link
Contributor

@mbjorge mbjorge commented Jun 19, 2017

Initial .pylint rc generated via pylint --generate-rc. Default
rcfile updated with:

  • reports turned off (just show the errors/warnings)
  • ignore some generated files (proto, parsetab)
  • 2 spaces instead of 4
  • PascalCaseMethodNames

Fixes: Issue #11

Initial .pylint rc generated via `pylint --generate-rc`. Default
rcfile updated with:
  - reports turned off (just show the errors/warnings)
  - ignore some generated files (proto, parsetab)
  - 2 spaces instead of 4
  - PascalCaseMethodNames

Fixes: Issue #11
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again.


def Resolve(self, env, resolved_params):
raise NotImplementedError('Resolved() is not needed: ' + self.name)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it necessary while NapeObject.Resolve() exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an quirk of how pylint works. Pylint sees that NameObject.Resolve just does a raise NotImplementedError, so pylint considers that method to be abstract. Then it doesn't see an overrdie in the child class, so it throws an unimplemented abstract method warning.

Another option would be to just disable the warning in this file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about:

if True:
raise NotImplementedError('Resolved() is not needed: ' + self.name)

in base class? Would "if True" do some trick?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants