Skip to content
Merged
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 python_bindings/src/halide/_generator_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def generator(name: str = ""):
_check(sys.version_info >= (3, 7), "Halide Generators require Python 3.7 or later.")

def generator_impl(cls):
n = name if name else _fqname(cls)
n = name or _fqname(cls)
_check_generator_name_in_use(n)
_check(isclass(cls), "@generator can only be used on classes.")
# Allow (but don't require) explicit inheritance from hl.Generator;
Expand Down
Loading