Skip to content

Commit 9e905fb

Browse files
[pre-commit.ci] pre-commit autoupdate (#217)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.12.1 → 24.3.0](psf/black@23.12.1...24.3.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](PyCQA/flake8@6.1.0...7.0.0) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8359961 commit 9e905fb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repos:
1414
- id: check-yaml
1515

1616
- repo: https://github.com/psf/black
17-
rev: 23.12.1
17+
rev: 24.3.0
1818
hooks:
1919
- id: black-jupyter
2020

2121
- repo: https://github.com/PyCQA/flake8
22-
rev: 6.1.0
22+
rev: 7.0.0
2323
hooks:
2424
- id: flake8
2525
- repo: https://github.com/asottile/seed-isort-config
@@ -37,7 +37,7 @@ repos:
3737
- id: prettier
3838

3939
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v1.8.0
40+
rev: v1.9.0
4141
hooks:
4242
- id: mypy
4343
additional_dependencies: [

xbatcher/testing.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ def _get_sample_length(
101101
"""
102102
if generator.concat_input_dims:
103103
batch_concat_dims = [
104-
generator.batch_dims.get(dim) // length
105-
if generator.batch_dims.get(dim)
106-
else generator.ds.sizes.get(dim) // length
104+
(
105+
generator.batch_dims.get(dim) // length
106+
if generator.batch_dims.get(dim)
107+
else generator.ds.sizes.get(dim) // length
108+
)
107109
for dim, length in generator.input_dims.items()
108110
]
109111
else:

0 commit comments

Comments
 (0)