Skip to content

Commit 2d17bf5

Browse files
committed
Bug fix on completer
1 parent 6783b4e commit 2d17bf5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

execnb/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def __call__(self, c):
269269
with provisionalcompleter():
270270
return [o.text.rpartition('.')[-1]
271271
for o in self.completions(c, len(c))
272-
if o.type=='<unknown>']
272+
if o.type not in ('magic', 'path')]
273273

274274
# %% ../nbs/02_shell.ipynb 97
275275
@patch

nbs/02_shell.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@
18551855
" with provisionalcompleter():\n",
18561856
" return [o.text.rpartition('.')[-1]\n",
18571857
" for o in self.completions(c, len(c))\n",
1858-
" if o.type=='<unknown>']"
1858+
" if o.type not in ('magic', 'path')]"
18591859
]
18601860
},
18611861
{

0 commit comments

Comments
 (0)