Skip to content

Commit 6927195

Browse files
committed
fix bug
1 parent a52de70 commit 6927195

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

brainpy/_src/math/compat_numpy.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
from typing import (Union, Any, Protocol)
4-
53
import jax.numpy as jnp
64
import numpy as np
75
from jax.tree_util import tree_flatten, tree_unflatten
@@ -12,13 +10,6 @@
1210
from .ndarray import Array
1311

1412

15-
class SupportsDType(Protocol):
16-
@property
17-
def dtype(self) -> np.dtype: ...
18-
19-
20-
DTypeLike = Union[Any, str, np.dtype, SupportsDType]
21-
2213
__all__ = [
2314
'full', 'full_like', 'eye', 'identity', 'diag', 'tri', 'tril', 'triu',
2415
'empty', 'empty_like', 'ones', 'ones_like', 'zeros', 'zeros_like',

0 commit comments

Comments
 (0)