Merge pull request #520 from oasis-open/issue-518

Fix the CustomExtension example in the custom.ipynb jupyter notebook.
pull/1/head
Rich Piazza 2021-07-12 16:23:12 -04:00 committed by GitHub
commit 3150cdece9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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",
@ -1803,7 +1803,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
@ -1817,7 +1817,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.0a6"
"version": "3.8.1"
}
},
"nbformat": 4,