Skip to content

Commit 9b792c7

Browse files
committed
remove-enumerate-from-allow-list
1 parent bff10e0 commit 9b792c7

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

IPython/core/guarded_eval.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,9 +1436,6 @@ def _list_methods(cls, source=None):
14361436
dict,
14371437
*_list_methods(dict, dict_non_mutating_methods),
14381438
dict.__iter__,
1439-
dict.keys,
1440-
dict.values,
1441-
dict.items,
14421439
dict_keys.__iter__,
14431440
dict_values.__iter__,
14441441
dict_items.__iter__,
@@ -1462,8 +1459,6 @@ def _list_methods(cls, source=None):
14621459
tuple.__iter__,
14631460
bool,
14641461
*_list_methods(bool),
1465-
enumerate,
1466-
enumerate.__iter__,
14671462
*NUMERICS,
14681463
*[method for numeric_cls in NUMERICS for method in _list_methods(numeric_cls)],
14691464
collections.deque,

tests/test_completer.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,24 +2495,6 @@ def _(expected):
24952495
),
24962496
"bit_length",
24972497
],
2498-
[
2499-
"\n".join(
2500-
[
2501-
"for i, char in enumerate('hello'):",
2502-
" char.",
2503-
]
2504-
),
2505-
"capitalize",
2506-
],
2507-
[
2508-
"\n".join(
2509-
[
2510-
"for i, char in enumerate('hello'):",
2511-
" i.",
2512-
]
2513-
),
2514-
"bit_length",
2515-
],
25162498
],
25172499
)
25182500
def test_undefined_variables(use_jedi, evaluation, code, insert_text):

0 commit comments

Comments
 (0)