Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

adjust to mypy one based column offset - #15

Merged
ambv merged 1 commit into
ambv:masterfrom
pixelb:one-based-columns
Jun 28, 2018
Merged

ambv merged 1 commit into
ambv:masterfrom
pixelb:one-based-columns

Conversation

@pixelb

@pixelb pixelb commented Jun 22, 2018

Copy link
Copy Markdown
Contributor

mypy has changed to one based offsets as of:
python/mypy#4475

mypy has changed to one based offsets as of:
python/mypy#4475
@ambv

ambv commented Jun 22, 2018

Copy link
Copy Markdown
Owner

Thanks for this, Padraig. I will look at the unrelated failure in a bit and we'll merge this.

@kaste kaste mentioned this pull request Jun 27, 2018
@ambv
ambv merged commit a585176 into ambv:master Jun 28, 2018
@ambv

ambv commented Jun 28, 2018

Copy link
Copy Markdown
Owner

Thanks! ✨ 🍰 ✨

@kaste

kaste commented Jun 29, 2018

Copy link
Copy Markdown
Contributor

🙄 I don't think this is a good PR. The tests are end-to-end, so if they break we have to fix the implementation not the test. I did this in #19. flake8 expects that we report 0-based columns.

Ref: https://github.com/PyCQA/flake8/blob/eb6228b660a5194f201dcf8767f804f697756b79/src/flake8/style_guide.py#L383-L389

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