6565 'undoc-members' : True ,
6666 'special-members' : True ,
6767 'exclude-members' : ',' .join ((
68- 'this' , 'thisown' , '__dict__ ' , '__eq__ ' , '__format__ ' ,
69- '__getattribute__ ' , '__ge__ ' , '__gt__ ' , '__hash__ ' , '__init__ ' ,
70- '__le__' , '__lt__' , '__module__ ' , '__new__' , '__ne__' , '__repr__ ' ,
71- '__str__' , '__weakref__' )),
68+ 'this' , 'thisown' , '__annotations__ ' , '__dict__ ' , '__eq__ ' ,
69+ '__format__ ' , '__getattribute__ ' , '__ge__ ' , '__gt__ ' , '__hash__ ' ,
70+ '__init__' , ' __le__' , '__lt__' , '__module__ ' , '__new__' , '__ne__' ,
71+ '__repr__' , ' __str__' , '__weakref__' )),
7272 'show-inheritance' : True ,
7373 }
7474
@@ -91,10 +91,10 @@ def process_docstring(app, what, name, obj, options, lines):
9191 if name == 'exiv2._version.__version_tuple__' :
9292 lines [:] = ['python-exiv2 version as a tuple of ints' , '' ]
9393 return
94- if 'iterator ' in name and not lines :
94+ if 'pointer ' in name and not lines :
9595 parts = name .split ('.' )
9696 lines [:] = ['See :meth:`{}.{}`.' .format (parts [2 ].replace (
97- 'Data_iterator ' , 'datum' ), parts [3 ]), '' ]
97+ 'datum_pointer ' , 'datum' ), parts [3 ]), '' ]
9898 return
9999 # fixes for particular problems
100100 if name .endswith ('iptc.Iptcdatum' ):
@@ -120,14 +120,10 @@ def process_docstring(app, what, name, obj, options, lines):
120120 for idx in range (len (lines )):
121121 lines [idx ] = lines [idx ].replace (
122122 'Exif.%Thumbnail.*' , '``Exif.Thumbnail.*``' )
123- if name .endswith ('Io.read' ):
124- # fix size_ member
125- for idx in range (len (lines )):
126- lines [idx ] = lines [idx ].replace ('DataBuf::size_' , 'DataBuf.size\_' )
127123 if name .endswith ('XmpData.usePacket' ):
128124 # fix usepacket_ member
129125 for idx in range (len (lines )):
130- lines [idx ] = lines [idx ].replace ('usePacket_' , 'usePacket\_' )
126+ lines [idx ] = lines [idx ].replace ('usePacket_' , r 'usePacket\_' )
131127 # other substitutions
132128 for idx in range (len (lines )):
133129 line = lines [idx ]
0 commit comments