All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 def function(**kwargs):
6 def function_replace_spaces(**kwargs):
7 t = a **2 + b** 3 + c ** 4
10 def function_dont_replace_spaces():
18 e = lazy(lambda **kwargs: 5)
24 k = [(2**idx, value) for idx, value in pairs]
25 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
26 m = [([2**63], [1, 2**63])]
28 o = settings(max_examples=10**6)
29 p = {(k, k**2): v**2 for k, v in pairs}
30 q = [10**i for i in range(6)]
37 e = lazy(lambda **kwargs: 5)
42 j = super().name ** 5.0
43 k = [(2.0**idx, value) for idx, value in pairs]
44 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
45 m = [([2.0**63.0], [1.0, 2**63.0])]
47 o = settings(max_examples=10**6.0)
48 p = {(k, k**2): v**2.0 for k, v in pairs}
49 q = [10.5**i for i in range(6)]
52 # WE SHOULD DEFINITELY NOT EAT THESE COMMENTS (https://github.com/psf/black/issues/2873)
53 if hasattr(view, "sum_of_weights"):
54 return np.divide( # type: ignore[no-any-return]
55 view.variance, # type: ignore[union-attr]
56 view.sum_of_weights, # type: ignore[union-attr]
57 out=np.full(view.sum_of_weights.shape, np.nan), # type: ignore[union-attr]
58 where=view.sum_of_weights**2 > view.sum_of_weights_squared, # type: ignore[union-attr]
62 where=view.sum_of_weights_of_weight_long**2 > view.sum_of_weights_squared, # type: ignore
69 def function(**kwargs):
74 def function_replace_spaces(**kwargs):
75 t = a**2 + b**3 + c**4
78 def function_dont_replace_spaces():
86 e = lazy(lambda **kwargs: 5)
92 k = [(2**idx, value) for idx, value in pairs]
93 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
94 m = [([2**63], [1, 2**63])]
96 o = settings(max_examples=10**6)
97 p = {(k, k**2): v**2 for k, v in pairs}
98 q = [10**i for i in range(6)]
105 e = lazy(lambda **kwargs: 5)
110 j = super().name ** 5.0
111 k = [(2.0**idx, value) for idx, value in pairs]
112 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
113 m = [([2.0**63.0], [1.0, 2**63.0])]
115 o = settings(max_examples=10**6.0)
116 p = {(k, k**2): v**2.0 for k, v in pairs}
117 q = [10.5**i for i in range(6)]
120 # WE SHOULD DEFINITELY NOT EAT THESE COMMENTS (https://github.com/psf/black/issues/2873)
121 if hasattr(view, "sum_of_weights"):
122 return np.divide( # type: ignore[no-any-return]
123 view.variance, # type: ignore[union-attr]
124 view.sum_of_weights, # type: ignore[union-attr]
125 out=np.full(view.sum_of_weights.shape, np.nan), # type: ignore[union-attr]
126 where=view.sum_of_weights**2 > view.sum_of_weights_squared, # type: ignore[union-attr]
130 where=view.sum_of_weights_of_weight_long**2 > view.sum_of_weights_squared, # type: ignore