Skip to content

removed comma on line 113 in i2c_device.py #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

phil-shenk
Copy link
Contributor

This comma was throwing a syntax error for us (python 3.5), removing this comma fixed it

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

See #56. We unfortunately can't accommodate this fix given our current auto-formatting and code format vetting.

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Sorry for the initial rejection. I had forgotten we are still using black --python35, which accommodates this syntax peculiarity.

@dhalbert dhalbert merged commit eb4b21e into adafruit:master Jul 27, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 27, 2020
@jerryneedell
Copy link

jerryneedell commented Jul 27, 2020

Just a question -- if I run black, with out the --python35, then presumably, it will insert the comma, correct?
If then commit the PR, will it fail in CI or will --python35 accept it with the comma thus setting up a case that may fail for some users....if they use python 3.5
My point it is, I have tended to just run black without the --python35 tanking it would "do no harm" to use a higher version. Is this incorrect?

Nevermind -- I think it will fail in CI since black --python35 will say it is not properly formatted.
That is my clue to remember to usr the --python35 setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants