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

Skip to content

Commit 1c4cf90

Browse files
committed
syntax
1 parent 5dd2b35 commit 1c4cf90

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IPython/core/magic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,8 @@ def __init__(
644644
class_magics = self.magics
645645
self.magics = {}
646646
for mtype in magic_kinds:
647-
tab: dict[str, Any] = self.magics[mtype] = {}
647+
self.magics[mtype] = {}
648+
tab: dict[str, Any] = self.magics[mtype]
648649
cls_tab: dict[str, Any] = class_magics[mtype]
649650
for magic_name, meth_name in cls_tab.items():
650651
if isinstance(meth_name, str):

0 commit comments

Comments
 (0)