summaryrefslogtreecommitdiff
path: root/src/lxml/etree.pyx
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-03-26 09:20:14 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-03-26 09:20:14 +0100
commiteaf494a41a427b0e2fffaa83e2de75d7b9e21856 (patch)
tree6b3b6cedb72dcdccb15e46913b88c042f87be522 /src/lxml/etree.pyx
parent90c46aa97bd09abbf4ff366078b01a7baf9445cd (diff)
downloadpython-lxml-eaf494a41a427b0e2fffaa83e2de75d7b9e21856.tar.gz
Add a couple of API type annotations.
Diffstat (limited to 'src/lxml/etree.pyx')
-rw-r--r--src/lxml/etree.pyx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lxml/etree.pyx b/src/lxml/etree.pyx
index 87734ec1..dfd6bba3 100644
--- a/src/lxml/etree.pyx
+++ b/src/lxml/etree.pyx
@@ -1939,7 +1939,7 @@ cdef public class _ElementTree [ type LxmlElementTreeType,
# not in ElementTree
@property
- def docinfo(self):
+ def docinfo(self) -> DocInfo:
"""Information about the document provided by parser and DTD."""
self._assertHasRoot()
return DocInfo(self._context_node._doc)
@@ -1957,9 +1957,9 @@ cdef public class _ElementTree [ type LxmlElementTreeType,
return None
def write(self, file, *, encoding=None, method="xml",
- pretty_print=False, xml_declaration=None, with_tail=True,
+ bint pretty_print=False, xml_declaration=None, bint with_tail=True,
standalone=None, doctype=None, compression=0,
- exclusive=False, with_comments=True, inclusive_ns_prefixes=None,
+ bint exclusive=False, bint with_comments=True, inclusive_ns_prefixes=None,
docstring=None):
u"""write(self, file, encoding=None, method="xml",
pretty_print=False, xml_declaration=None, with_tail=True,
@@ -2360,7 +2360,7 @@ cdef public class _ElementTree [ type LxmlElementTreeType,
self._assertHasRoot()
XInclude()(self._context_node)
- def write_c14n(self, file, *, exclusive=False, with_comments=True,
+ def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True,
compression=0, inclusive_ns_prefixes=None):
u"""write_c14n(self, file, exclusive=False, with_comments=True,
compression=0, inclusive_ns_prefixes=None)