Merge pull request #289 from cclauss/patch-1

Explicit tuple required in comprehension in Python 3
This commit is contained in:
Grant Sanderson 2018-09-11 11:43:24 -07:00 committed by GitHub
commit 384895b9a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ class WorkOutNumerically(Scene):
non_numbers = VGroup(*[m for m in det if m not in numbers])
matrix_numbers = VGroup(*[
matrix.mob_matrix[i][j].copy()
for i, j in (0, 0), (1, 1), (0, 1), (1, 0)
for i, j in ((0, 0), (1, 1), (0, 1), (1, 0))
])
self.play(
LaggedStart(FadeIn, non_numbers, run_time=1),

View file

@ -1010,7 +1010,7 @@ class UpdatePokerPrior(SampleSpaceScene):
"P(", s, self.double_heart_template, ")",
"= ", num
)
for s, num in ("", p_str), ("\\text{not }", q_str)
for s, num in (("", p_str), ("\\text{not }", q_str))
]
for label in labels:
label.scale(0.7)

View file

@ -486,7 +486,7 @@ class TryUnitSquareVisual(SampleSpaceScene):
TexMobject("P(\\text{Disease})", s1),
TexMobject("P(\\text{Not disease})", s2),
).scale(0.7)
for s1, s2 in ("", ""), ("= 0.001", "= 0.999")
for s1, s2 in (("", ""), ("= 0.001", "= 0.999"))
]
sample_space.get_side_braces_and_labels(initial_labels)
sample_space.add_braces_and_labels()