Skip to content

Commit 802a493

Browse files
committed
fix lib-nb diff due to lagged jupyter notebook checkpointing
1 parent 88a5d07 commit 802a493

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

fastcore/_nbdev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"store_true": "08_script.ipynb",
200200
"store_false": "08_script.ipynb",
201201
"bool_arg": "08_script.ipynb",
202-
"clean_type": "08_script.ipynb",
202+
"clean_type_str": "08_script.ipynb",
203203
"Param": "08_script.ipynb",
204204
"anno_parser": "08_script.ipynb",
205205
"args_from_prog": "08_script.ipynb",

fastcore/script.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/08_script.ipynb (unless otherwise specified).
22

3-
__all__ = ['store_true', 'store_false', 'bool_arg', 'clean_type', 'Param', 'anno_parser', 'args_from_prog',
3+
__all__ = ['store_true', 'store_false', 'bool_arg', 'clean_type_str', 'Param', 'anno_parser', 'args_from_prog',
44
'call_parse']
55

66
# Cell
@@ -25,7 +25,7 @@ def bool_arg(v):
2525
return str2bool(v)
2626

2727
# Cell
28-
def clean_type(x:str):
28+
def clean_type_str(x:str):
2929
x = str(x)
3030
x = re.sub("(class|function|__main__\.|\ at.*)", '', x)
3131
x = re.sub("(<|>|'|\ )", '', x) # spl characters
@@ -53,9 +53,9 @@ def kwargs(self): return {k:v for k,v in self.__dict__.items()
5353
if v is not None and k!='opt' and k[0]!='_'}
5454
def __repr__(self):
5555
if self.help is None and self.type is None: return ""
56-
if self.help is None and self.type is not None: return f"{clean_type(self.type)}"
56+
if self.help is None and self.type is not None: return f"{clean_type_str(self.type)}"
5757
if self.help is not None and self.type is None: return f"<{self.help}>"
58-
if self.help is not None and self.type is not None: return f"{clean_type(self.type)} <{self.help}>"
58+
if self.help is not None and self.type is not None: return f"{clean_type_str(self.type)} <{self.help}>"
5959

6060
# Cell
6161
def anno_parser(func, prog=None, from_name=False):

0 commit comments

Comments
 (0)