Skip to content

Commit 732e7d1

Browse files
superbobrytensorflower-gardener
authored andcommitted
Ignore pytype errors produced with --use-functools-partial-overlay
PiperOrigin-RevId: 828527042
1 parent 1097e56 commit 732e7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spinoffs/fun_mc/fun_mc/malt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def orig_target_log_prob_fn(x):
294294
)
295295
if momentum_sample_fn is None:
296296
momentum_sample_fn = lambda seed: fun_mc.gaussian_momentum_sample( # pylint: disable=g-long-lambda
297-
state=malt_state.state, seed=seed, named_axis=named_axis
297+
state=malt_state.state, seed=seed, named_axis=named_axis # pytype: disable=attribute-error
298298
)
299299
if momentum_refresh_fn is None:
300300
momentum_refresh_fn = lambda m, seed: _gaussian_momentum_refresh_fn( # pylint: disable=g-long-lambda

0 commit comments

Comments
 (0)