-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: drop useless python import #16808
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
fix: drop useless python import #16808
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM when CI passes
lint fixed will figure out why failed a case today seems can not change pyi will revert pyi files update do not touch pyi files oh finally |
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
94c7b21
to
7ddc633
Compare
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Thanks! |
I've ended up reverting this in #16834 - this seems to have broken a bunch of CI jobs and caused other issues. I think the import checker has a bunch of holes that make it not work correctly across Python versions (i.e. some imports are useless on Python 3.11 but required for Python 3.10). |
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800) Benchmark runner summary (duckdb/duckdb#16759) NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817) fix: drop useless python import (duckdb/duckdb#16808) Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800) Benchmark runner summary (duckdb/duckdb#16759) NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817) fix: drop useless python import (duckdb/duckdb#16808) Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800) Benchmark runner summary (duckdb/duckdb#16759) NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817) fix: drop useless python import (duckdb/duckdb#16808) Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800) Benchmark runner summary (duckdb/duckdb#16759) NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817) fix: drop useless python import (duckdb/duckdb#16808) Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800) Benchmark runner summary (duckdb/duckdb#16759) NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817) fix: drop useless python import (duckdb/duckdb#16808) Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800) Benchmark runner summary (duckdb/duckdb#16759) NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817) fix: drop useless python import (duckdb/duckdb#16808) Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
This patch drop useless python import.
when using some code from duckdb found that, some of python import are useless
so using ruff to static check and drop them(do not touch the warnign which maybe useful)
command:
pip install ruff ruff check --fix --select F401 .