Skip to content

Commit

Permalink
Memref: fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinistro committed Jan 2, 2022
1 parent 37ef720 commit 4512467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xdsl/dialects/memref.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class Global(Operation):
# constant = AttributeDef(UnitAttr)

@staticmethod
def get(sym_name: StringAttr,
def get(sym_name: Union[str, StringAttr],
typ: Attribute,
initial_value: Optional[Attribute],
sym_visibility="private") -> Global:
Expand Down

0 comments on commit 4512467

Please sign in to comment.