Skip to content

Commit

Permalink
misc: fix irdl notebook parser param (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
superlopuh authored Aug 14, 2023
1 parent b43c47c commit d6f1f83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/irdl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -644,15 +644,15 @@
"source": [
"from xdsl.irdl import irdl_attr_definition\n",
"from xdsl.ir import Data\n",
"from xdsl.parser import Parser\n",
"from xdsl.parser import AttrParser\n",
"\n",
"\n",
"@irdl_attr_definition\n",
"class MyIntAttr(Data[int]):\n",
" name = \"my_int\"\n",
"\n",
" @staticmethod\n",
" def parse_parameter(parser: Parser) -> int:\n",
" @classmethod\n",
" def parse_parameter(cls, parser: AttrParser) -> int:\n",
" data = parser.parse_integer()\n",
" return data\n",
"\n",
Expand Down

0 comments on commit d6f1f83

Please sign in to comment.