Skip to content

Commit

Permalink
api: fix alias for buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Dec 6, 2024
1 parent 2e970db commit 2ba43d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/types/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def __new__(cls, *args, **kwargs):
name = kwargs.get('name')
alias = kwargs.get('alias')
function = kwargs.get('function')
if alias or (function and function.name != name):
if alias is True or (function and function.name != name):
function = kwargs['function'] = None

# If same name/indices and `function` isn't None, then it's
Expand Down

0 comments on commit 2ba43d2

Please sign in to comment.