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:
Pavol Rusnak
2023-09-06 21:20:25 +02:00
committed by GitHub
parent fd25792c8b
commit 52a92bf95d
12 changed files with 57 additions and 11 deletions

View File

@@ -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: