-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Replace pyupgrade with builtin Ruff's UP rule
#8606
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: dev
Are you sure you want to change the base?
Changes from all commits
5c94edd
f0a3e6a
b249b2f
b2d430d
f25dcd5
cb6797f
ef4667e
fba7650
c0adfc3
58caa34
8a7eeed
d8bae00
6238654
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 |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ | |
|
|
||
| import warnings | ||
| from collections.abc import Iterable, Sequence | ||
| from functools import lru_cache, partial | ||
| from functools import cache, partial | ||
| from types import ModuleType | ||
| from typing import Any | ||
|
|
||
|
|
@@ -465,7 +465,7 @@ def prepare_spacing( | |
| ENCODING_KERNEL = {2: [[8, 4], [2, 1]], 3: [[[128, 64], [32, 16]], [[8, 4], [2, 1]]]} | ||
|
|
||
|
|
||
| @lru_cache(maxsize=None) | ||
| @cache | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: The decorator
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is a valid complaint that should be looked at. |
||
| def _get_neighbour_code_to_normals_table(device=None): | ||
| """ | ||
| returns a lookup table. For every binary neighbour code (2x2x2 neighbourhood = 8 neighbours = 8 bits = 256 codes) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.