Skip to content

Commit

Permalink
Bump pytype from 2022.6.30 to 2022.7.18 (#785)
Browse files Browse the repository at this point in the history
* Bump pytype from 2022.6.30 to 2022.7.18

Bumps [pytype](https://github.com/google/pytype) from 2022.6.30 to 2022.7.18.
- [Release notes](https://github.com/google/pytype/releases)
- [Changelog](https://github.com/google/pytype/blob/main/CHANGELOG)
- [Commits](google/pytype@2022.06.30...2022.07.18)

---
updated-dependencies:
- dependency-name: pytype
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Ignore pytype error

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lukas Geiger <lukas.geiger94@gmail.com>
  • Loading branch information
dependabot[bot] and lgeiger committed Aug 8, 2022
1 parent 2001d42 commit b048f7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions larq/optimizers_test.py
Expand Up @@ -8,11 +8,6 @@
from larq import testing_utils as lq_testing_utils


def _assert_weights(weights, expected):
for w, e in zip(weights, expected):
np.testing.assert_allclose(np.squeeze(w), e)


def _test_optimizer(
optimizer, target=0.75, test_kernels_are_binary=True, trainable_bn=True
):
Expand Down Expand Up @@ -58,7 +53,9 @@ def _test_serialization(optimizer):
class TestCaseOptimizer:
def test_type_check_predicate(self):
with pytest.raises(TypeError):
# pytype: disable=wrong-arg-types
lq.optimizers.CaseOptimizer((False, lq.optimizers.Bop()))
# pytype: enable=wrong-arg-types

def test_type_check_optimizer(self):
with pytest.raises(TypeError):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -39,7 +39,7 @@ def readme():
"black==22.6.0",
"flake8>=3.7.9,<4.1.0",
"isort==5.10.1",
"pytype==2022.6.30",
"pytype==2022.7.18",
],
},
classifiers=[
Expand Down

0 comments on commit b048f7a

Please sign in to comment.