Skip to content

Commit

Permalink
added autopep8 linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Nov 5, 2023
1 parent 2f0fe77 commit 0585dec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ repos:
rev: v1.5
hooks:
- id: autopep8

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
exclude: ^.*yml$
language_version: python3

- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
Expand Down
13 changes: 10 additions & 3 deletions dummy-files/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,16 @@ def stack(
return tf.experimental.numpy.stack(arrays, axis)
except ValueError as e:
raise ivy.utils.exceptions.IvyIndexError(e)





@with_supported_dtypes({"2.13.0 and below": ("int32", "int64")}, backend_version)
def repeat(
x: Union[tf.Tensor, tf.Variable],
/,
repeats: Union[int, List[int]],
*,
axis: int = None,
out: Optional[Union[tf.Tensor, tf.Variable]] = None,
) -> Union[tf.Tensor, tf.Variable]:
return tf.repeat(x, repeats, axis)

0 comments on commit 0585dec

Please sign in to comment.