8000 MNT: Better solution for PLW0108 · numpy/numpy@26cb46d · GitHub
[go: up one dir, main page]

Skip to content

Commit 26cb46d

Browse files
MNT: Better solu 8000 tion for PLW0108
Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>
1 parent f89e30b commit 26cb46d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/lib/_function_base_impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
# --- HYNDMAN and FAN METHODS
6868
# Discrete methods
6969
'inverted_cdf': {
70-
'get_virtual_index': _inverted_cdf,
70+
'get_virtual_index': lambda n, quantiles: _inverted_cdf(n, quantiles), # noqa: PLW0108
7171
'fix_gamma': None, # should never be called
7272
},
7373
'averaged_inverted_cdf': {
@@ -79,7 +79,7 @@
7979
where=gamma == 0),
8080
},
8181
'closest_observation': {
82-
'get_virtual_index': _closest_observation,
82+
'get_virtual_index': lambda n, quantiles: _closest_observation(n, quantiles), # noqa: PLW0108
8383
'fix_gamma': None, # should never be called
8484
},
8585
# Continuous methods

0 commit comments

Comments
 (0)
0