Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jan 29, 2023
1 parent a52de70 commit 6927195
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions brainpy/_src/math/compat_numpy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from typing import (Union, Any, Protocol)

import jax.numpy as jnp
import numpy as np
from jax.tree_util import tree_flatten, tree_unflatten
Expand All @@ -12,13 +10,6 @@
from .ndarray import Array


class SupportsDType(Protocol):
@property
def dtype(self) -> np.dtype: ...


DTypeLike = Union[Any, str, np.dtype, SupportsDType]

__all__ = [
'full', 'full_like', 'eye', 'identity', 'diag', 'tri', 'tril', 'triu',
'empty', 'empty_like', 'ones', 'ones_like', 'zeros', 'zeros_like',
Expand Down

0 comments on commit 6927195

Please sign in to comment.