Skip to content

Commit

Permalink
Merge pull request #520 from oasis-open/issue-518
Browse files Browse the repository at this point in the history
Fix the CustomExtension example in the custom.ipynb jupyter notebook.
  • Loading branch information
rpiazza authored Jul 12, 2021
2 parents 10956d3 + 92903a4 commit 3150cde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/guide/custom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1577,9 +1577,9 @@
}
],
"source": [
"from stix2 import File, CustomExtension\n",
"from stix2 import CustomExtension\n",
"\n",
"@CustomExtension(File, 'x-new-ext', [\n",
"@CustomExtension('x-new-ext', [\n",
" ('property1', properties.StringProperty(required=True)),\n",
" ('property2', properties.IntegerProperty()),\n",
"])\n",
Expand Down Expand Up @@ -1803,7 +1803,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1817,7 +1817,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.0a6"
"version": "3.8.1"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 3150cde

Please sign in to comment.