@@ -2478,7 +2478,7 @@ def test_math_with_coords(self) -> None:
24782478 actual = 1 + orig
24792479 assert_identical (expected , actual )
24802480
2481- with xr .set_options (arithmetic_compat = ' minimal' ):
2481+ with xr .set_options (arithmetic_compat = " minimal" ):
24822482 actual = orig + orig [0 , 0 ]
24832483 exp_coords = {k : v for k , v in coords .items () if k != "lat" }
24842484 expected = DataArray (
@@ -2490,9 +2490,7 @@ def test_math_with_coords(self) -> None:
24902490 assert_identical (expected , actual )
24912491
24922492 actual = orig [0 , 0 ] + orig [- 1 , - 1 ]
2493- expected = DataArray (
2494- orig .values [0 , 0 ] + orig .values [- 1 , - 1 ],
2495- {"c" : - 999 })
2493+ expected = DataArray (orig .values [0 , 0 ] + orig .values [- 1 , - 1 ], {"c" : - 999 })
24962494 assert_identical (expected , actual )
24972495
24982496 actual = orig [:, 0 ] + orig [0 , :]
@@ -2512,7 +2510,7 @@ def test_math_with_coords(self) -> None:
25122510
25132511 alt = DataArray ([1 , 1 ], {"x" : [- 1 , - 2 ], "c" : "foo" , "d" : 555 }, "x" )
25142512
2515- with xr .set_options (arithmetic_compat = ' minimal' ):
2513+ with xr .set_options (arithmetic_compat = " minimal" ):
25162514 actual = orig + alt
25172515 expected = orig + 1
25182516 expected .coords ["d" ] = 555
@@ -2530,15 +2528,15 @@ def test_math_with_arithmetic_compat_options(self) -> None:
25302528 coords = {
25312529 "x" : [1 , 2 , 3 ],
25322530 "foo" : (["x" ], [1.0 , 2.0 , np .nan ]),
2533- }
2531+ },
25342532 )
25352533 b = xr .DataArray (
25362534 data = [0 , 0 , 0 ],
25372535 dims = ["x" ],
25382536 coords = {
25392537 "x" : [1 , 2 , 3 ],
25402538 "foo" : (["x" ], [np .nan , 2.0 , 3.0 ]),
2541- }
2539+ },
25422540 )
25432541
25442542 with xr .set_options (arithmetic_compat = "minimal" ):
0 commit comments