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

@@ -5,7 +5,7 @@ from tinygrad.helpers import dtypes
from tinygrad.jit import CacheCollector
from weakref import ref
class FakeDeviceBuffer():
class FakeDeviceBuffer:
def __init__(self, sz, dt, device):
self.size = sz
self.dtype = dt