Skip to content

Fix Mypy issue in _openml.py#17047

Merged
NicolasHug merged 5 commits intoscikit-learn:masterfrom
NicolasHug:noideawhatimdoing
Apr 26, 2020
Merged

Fix Mypy issue in _openml.py#17047
NicolasHug merged 5 commits intoscikit-learn:masterfrom
NicolasHug:noideawhatimdoing

Conversation

@NicolasHug
Copy link
Copy Markdown
Member

@NicolasHug NicolasHug commented Apr 26, 2020

Will probably fix CI too

@rth
Copy link
Copy Markdown
Member

rth commented Apr 26, 2020

Breaking master twice in one day is pretty bad. The CI in PR was green though :)

The fix for different signatures is in https://github.com/rth/scikit-learn/pull/new/annotations-openml (trying to add type annotations in general). Looks like we are not running linters on the merged version of the code.

@rth
Copy link
Copy Markdown
Member

rth commented Apr 26, 2020

Or you can just add # type: ignore for now. We should put mypy in a job that doesn't block CI. Maybe GH actions.

@NicolasHug
Copy link
Copy Markdown
Member Author

NicolasHug commented Apr 26, 2020

The CI in PR was green though :)

I know lol. I think the PR got merged before the mypy check got introduced, so mypy wasn't run on that PR I think the openml PR was ready before we introduced mypy in the CI, so we couldn't catch that mypy would have failed on it

WDYT of the proposed fix here?

Copy link
Copy Markdown
Member

@rth rth left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@NicolasHug NicolasHug changed the title [WIP] Might fix CI, might not [MRG] Fix Mypy issue in openml.py Apr 26, 2020
@NicolasHug
Copy link
Copy Markdown
Member Author

Or you can just add # type: ignore for now.

Oh yes that's better, did that

We should put mypy in a job that doesn't block CI. Maybe GH actions.

Yes good idea

@NicolasHug
Copy link
Copy Markdown
Member Author

Thanks @rth, linting passing so I'll merge since this is blocking other PRs

what a sunday lol

@NicolasHug NicolasHug changed the title [MRG] Fix Mypy issue in openml.py Fix Mypy issue in _openml.py Apr 26, 2020
@NicolasHug NicolasHug merged commit a35b892 into scikit-learn:master Apr 26, 2020
@NicolasHug NicolasHug deleted the noideawhatimdoing branch April 26, 2020 18:37
@thomasjpfan
Copy link
Copy Markdown
Member

It is a lovely sunday xD

@rth
Copy link
Copy Markdown
Member

rth commented Apr 26, 2020

And now we have another issue in CircleCI:

! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pd
fstartlink.

Anyone interested in debugging LaTeX? :)

gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants