Skip to content

Commit 6438eef

Browse files
committed
fix: Make the type notation in nbglob_cli compatible with python3.9
1 parent fe26497 commit 6438eef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/doclinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def nbglob(path=None, skip_folder_re = '^[_.]', file_glob='*.ipynb', skip_file_r
132132
def nbglob_cli(
133133
path:str=None, # Path to notebooks
134134
symlinks:bool=False, # Follow symlinks?
135-
file_glob:str|List[str]=['*.ipynb'] + [f"*.{ext}" for ext in plaintext_file_formats], # Only include files matching glob
135+
file_glob:Union[str, List[str]]=['*.ipynb'] + [f"*.{ext}" for ext in plaintext_file_formats], # Only include files matching glob
136136
file_re:str=None, # Only include files matching regex
137137
folder_re:str=None, # Only enter folders matching regex
138138
skip_file_glob:str=None, # Skip files matching glob

nbs/api/05_doclinks.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
"def nbglob_cli(\n",
345345
" path:str=None, # Path to notebooks\n",
346346
" symlinks:bool=False, # Follow symlinks?\n",
347-
" file_glob:str|List[str]=['*.ipynb'] + [f\"*.{ext}\" for ext in plaintext_file_formats], # Only include files matching glob\n",
347+
" file_glob:Union[str, List[str]]=['*.ipynb'] + [f\"*.{ext}\" for ext in plaintext_file_formats], # Only include files matching glob\n",
348348
" file_re:str=None, # Only include files matching regex\n",
349349
" folder_re:str=None, # Only enter folders matching regex\n",
350350
" skip_file_glob:str=None, # Skip files matching glob\n",

0 commit comments

Comments
 (0)