-
Notifications
You must be signed in to change notification settings - Fork 42
MAINT: Enforce additional ruff rules #416
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
base: main
Are you sure you want to change the base?
Changes from all commits
f3cd9f9
3c66ce3
2a442a5
eb77d7a
7070411
39faf7c
03a46fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,4 +19,4 @@ | |
| """ | ||
| __version__ = '1.15.0.dev0' | ||
|
|
||
| from .common import * # noqa: F401, F403 | ||
| from .common import * # noqa: F403 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| # ruff: noqa: PLC0414 | ||
| from typing import Final | ||
|
|
||
| from .._internal import clone_module | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -61,7 +61,7 @@ def isdtype_(dtype_, kind): | |||||
| res = dtype_categories[kind](dtype_) | ||||||
| else: | ||||||
| res = dtype_ == kind | ||||||
| assert type(res) is bool # noqa: E721 | ||||||
| assert type(res) is bool | ||||||
|
||||||
| assert type(res) is bool | |
| assert isinstance(res, bool) |
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.
I don't see ruff flagging this line.
With that said, this line could be modified as suggested, but the suggestion is orthogonal to this PR.
Uh oh!
There was an error while loading. Please reload this page.