We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 504065a commit b821d1dCopy full SHA for b821d1d
docx/oxml/shape.py
@@ -8,7 +8,9 @@
8
from ..shared import Emu
9
from .ns import nsmap, nspfxmap, qn
10
from .simpletypes import ST_RelationshipId
11
-from .xmlchemy import BaseOxmlElement, OptionalAttribute, ZeroOrOne
+from .xmlchemy import (
12
+ BaseOxmlElement, OneAndOnlyOne, OptionalAttribute, ZeroOrOne
13
+)
14
15
16
class CT_Blip(BaseOxmlElement):
@@ -46,9 +48,7 @@ class CT_GraphicalObject(BaseOxmlElement):
46
48
"""
47
49
``<a:graphic>`` element, container for a DrawingML object
50
- @property
- def graphicData(self):
51
- return self.find(qn('a:graphicData'))
+ graphicData = OneAndOnlyOne('a:graphicData')
52
53
@classmethod
54
def new(cls, uri, pic):
0 commit comments