Skip to content

Commit 809afbb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 49b23fd commit 809afbb

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

python/taichi/lang/_ndarray.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@ def __getitem__(self, key):
6262

6363
def __del__(self):
6464
rt = impl.get_runtime()
65-
if (
66-
self.arr is not None and
67-
impl is not None and
68-
rt is not None and
69-
rt.prog is not None
70-
):
65+
if self.arr is not None and impl is not None and rt is not None and rt.prog is not None:
7166
impl.get_runtime().prog.delete_ndarray(self.arr)
7267

7368
@python_scope
@@ -253,7 +248,6 @@ def __init__(self, dtype, arr_shape):
253248
self.shape = tuple(self.arr.shape)
254249
self.element_type = dtype
255250

256-
257251
@property
258252
def element_shape(self):
259253
return ()

0 commit comments

Comments
 (0)