mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
use class Foo: instead of class Foo(): (#1797)
* use class Foo: instead of class Foo(): * add ruff linter, copy settings from .flake8 to ruff.toml
This commit is contained in:
2
test/external/external_test_opt.py
vendored
2
test/external/external_test_opt.py
vendored
@@ -17,7 +17,7 @@ from tinygrad.ops import GlobalCounters, MovementOps, ReduceOps
|
||||
from tinygrad.lazy import PUSH_PERMUTES
|
||||
from tinygrad.jit import CacheCollector
|
||||
|
||||
class CLCache():
|
||||
class CLCache:
|
||||
def __init__(self, allowed=None, strict=False, preclear=True): self.allowed, self.strict, self.preclear = allowed, strict, preclear
|
||||
def __enter__(self):
|
||||
if self.preclear:
|
||||
|
||||
Reference in New Issue
Block a user