Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 606767f

Browse files
Apply suggestion from @krassowski
Co-authored-by: Michał Krassowski <[email protected]>
1 parent 4edefdf commit 606767f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

IPython/core/guarded_eval.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ def guarded_eval(code: str, context: EvaluationContext):
500500
}
501501

502502
GENERIC_CONTAINER_TYPES = (dict, list, set, tuple, frozenset)
503+
504+
503505
class ImpersonatingDuck:
504506
"""A dummy class used to create objects of other classes without calling their ``__init__``"""
505507

0 commit comments

Comments
 (0)