Skip to content

Commit

Permalink
Merge pull request #2 from hbq1:add_pytypes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 327416525
Change-Id: I8db48986ffbacfaf5d79ed835ba9285141c9bd67
  • Loading branch information
Copybara-Service committed Aug 19, 2020
2 parents 8f6fe75 + 815984e commit 83a540f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ or from PyPI:

## Modules Overview

### Dataclass ([dataclass.py](https://github.com/deepmind/chex/blob/master/chex/_src/dataclass.p))
### Dataclass ([dataclass.py](https://github.com/deepmind/chex/blob/master/chex/_src/dataclass.py))

Dataclasses are a popular construct introduced by Python 3.7 to allows to
easily specify typed data structures with minimal boilerplate code. They are
Expand Down
2 changes: 1 addition & 1 deletion chex/_src/asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def assert_type(
raise AssertionError("Error in type compatibility check: " + msg + ".")


def assert_axis_dimension(tensor, axis, expected):
def assert_axis_dimension(tensor: Array, axis: int, expected: int):
"""Assert dimension of a specific axis of a tensor.
Args:
Expand Down

0 comments on commit 83a540f

Please sign in to comment.