File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ repos:
14
14
- id : check-yaml
15
15
16
16
- repo : https://github.com/psf/black
17
- rev : 23.12.1
17
+ rev : 24.3.0
18
18
hooks :
19
19
- id : black-jupyter
20
20
21
21
- repo : https://github.com/PyCQA/flake8
22
- rev : 6.1 .0
22
+ rev : 7.0 .0
23
23
hooks :
24
24
- id : flake8
25
25
- repo : https://github.com/asottile/seed-isort-config
37
37
- id : prettier
38
38
39
39
- repo : https://github.com/pre-commit/mirrors-mypy
40
- rev : v1.8 .0
40
+ rev : v1.9 .0
41
41
hooks :
42
42
- id : mypy
43
43
additional_dependencies : [
Original file line number Diff line number Diff line change @@ -101,9 +101,11 @@ def _get_sample_length(
101
101
"""
102
102
if generator .concat_input_dims :
103
103
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
+ )
107
109
for dim , length in generator .input_dims .items ()
108
110
]
109
111
else :
You can’t perform that action at this time.
0 commit comments