Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fasttransform/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class DisplayedTransform(Transform):
"A transform with a `__repr__` that shows its attrs"

@property
def name(self): return f"{super().name} -- {getattr(self,'__stored_args__',{})}\n"
def name(self): return f"{super().name} -- {init_args(self)}\n"

# %% ../nbs/01_transform.ipynb #09e4c9ce
class ItemTransform(Transform):
Expand Down
4 changes: 2 additions & 2 deletions nbs/01_transform.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@
" \"A transform with a `__repr__` that shows its attrs\"\n",
"\n",
" @property\n",
" def name(self): return f\"{super().name} -- {getattr(self,'__stored_args__',{})}\\n\""
" def name(self): return f\"{super().name} -- {init_args(self)}\\n\""
]
},
{
Expand Down Expand Up @@ -2026,7 +2026,7 @@
"id": "6c51327b",
"metadata": {},
"source": [
"A DisplayedTransform will in addition show the contents of all attributes listed in the comma-delimited string self.store_attrs:"
"A `DisplayedTransform` also shows its constructor arguments, read back from the attributes `store_attr` set:\n"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = {text = "Apache-2.0"}
authors = [{name = "Jeremy Howard and Rens Dimmendaal and Alexis Gallagher", email = "info@fast.ai"}]
keywords = ['nbdev', 'jupyter', 'notebook', 'python']
classifiers = ["Natural Language :: English", "Intended Audience :: Developers", "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only"]
dependencies = ['fastcore', 'plum-dispatch']
dependencies = ['fastcore>=2.2.21', 'plum-dispatch']

[project.urls]
Repository = "https://github.com/AnswerDotAI/fasttransform"
Expand Down
Loading