Skip to content

[python-package] fix mypy error from Dataset.pandas_categorical - #6098

Merged
jameslamb merged 2 commits into
masterfrom
python/mypy-pandas-categorical
Sep 19, 2023
Merged

jameslamb merged 2 commits into
masterfrom
python/mypy-pandas-categorical

Conversation

@jameslamb

Copy link
Copy Markdown
Member

Contributes to #3756.
Contributes to #3867.

Resolves the following error from mypy:

basic.py:1862: error: Incompatible types in assignment (expression has type "List[List[Any]]", variable has type "None")  [assignment]

@jameslamb

Copy link
Copy Markdown
Member Author

The CUDA 10 job has started pulling in a too-old version of CMake, resulting in this error:

CMake Error at CMakeLists.txt:37 (cmake_minimum_required):
-- Configuring incomplete, errors occurred!
CMake 3.16 or higher is required. You are running version 3.10.2

I don't know why, but I'm not planning to investigate it. #6099 will remove the CUDA 10 job and fix that anyway.

@jameslamb

Copy link
Copy Markdown
Member Author

Just re-running the failed CUDA job fixed CI! So I guess getting an older version of CMake there was just something temporary.

@jameslamb
jameslamb merged commit 646dfed into master Sep 19, 2023
@jameslamb
jameslamb deleted the python/mypy-pandas-categorical branch September 19, 2023 02:46
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants