@@ -1712,7 +1712,7 @@ class CustomMarking:
17121712 extension_type = "toplevel-property-extension"
17131713
17141714 props = {
1715- "foo" : stix2 .properties .StringProperty (required = True )
1715+ "foo" : stix2 .properties .StringProperty (required = True ),
17161716 }
17171717
17181718 with _register_extension (CustomMarking , props ) as ext_def_id :
@@ -1723,9 +1723,9 @@ class CustomMarking:
17231723 "foo" : "hello" ,
17241724 "extensions" : {
17251725 ext_def_id : {
1726- "extension_type" : "toplevel-property-extension"
1727- }
1728- }
1726+ "extension_type" : "toplevel-property-extension" ,
1727+ },
1728+ },
17291729 }
17301730
17311731 marking = stix2 .parse (marking_dict )
@@ -1928,7 +1928,7 @@ class ExtensionsExtension:
19281928 extension_type = "toplevel-property-extension"
19291929
19301930 ext_props = {
1931- "extensions" : stix2 .properties .ExtensionsProperty (spec_version = "2.1" )
1931+ "extensions" : stix2 .properties .ExtensionsProperty (spec_version = "2.1" ),
19321932 }
19331933
19341934 with _register_extension (ExtensionsExtension , ext_props ) as ext_id :
@@ -1944,9 +1944,9 @@ class ExtensionsExtension:
19441944 "extension_types" : ["toplevel-property-extension" ],
19451945 "extensions" : {
19461946 ext_id : {
1947- "extension_type" : "toplevel-property-extension"
1948- }
1949- }
1947+ "extension_type" : "toplevel-property-extension" ,
1948+ },
1949+ },
19501950 }
19511951
19521952 stix2 .parse (obj_dict )
@@ -1958,8 +1958,8 @@ def test_invalid_extension_prop_name():
19581958 @stix2 .v21 .common .CustomExtension (
19591959 "extension-definition--0530fdbd-0fa3-42ab-90cf-660e0abad370" ,
19601960 [
1961- ("7foo" , stix2 .properties .StringProperty ())
1962- ]
1961+ ("7foo" , stix2 .properties .StringProperty ()),
1962+ ],
19631963 )
19641964 class CustomExt :
19651965 extension_type = "property-extension"
@@ -1968,8 +1968,8 @@ class CustomExt:
19681968 @stix2 .v21 .common .CustomExtension (
19691969 "extension-definition--0530fdbd-0fa3-42ab-90cf-660e0abad370" ,
19701970 [
1971- ("7foo" , stix2 .properties .StringProperty ())
1972- ]
1971+ ("7foo" , stix2 .properties .StringProperty ()),
1972+ ],
19731973 )
19741974 class CustomExt :
19751975 extension_type = "toplevel-property-extension"
0 commit comments