File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ from .._types import (
2424 _TextArg ,
2525)
2626from ._element import _Element
27- from ._module_misc import LxmlError
27+ from ._module_misc import CDATA , LxmlError
2828
2929if sys .version_info >= (3 , 11 ):
3030 from typing import Never
@@ -184,7 +184,7 @@ class _IncrementalFileWriter:
184184 def write_doctype (self , doctype : _TextArg | None ) -> None : ...
185185 def write (
186186 self ,
187- * args : str | bytes | _Element , # no bytearray
187+ * args : str | bytes | CDATA | _Element , # no bytearray
188188 with_tail : bool = True ,
189189 pretty_print : bool = False ,
190190 method : _OutputMethodArg | None = None ,
@@ -211,7 +211,7 @@ class _AsyncIncrementalFileWriter:
211211 async def write_doctype (self , doctype : _TextArg | None ) -> None : ...
212212 async def write (
213213 self ,
214- * args : str | bytes | _Element | None , # no bytearray
214+ * args : str | bytes | CDATA | _Element | None , # no bytearray
215215 with_tail : bool = True ,
216216 pretty_print : bool = False ,
217217 method : _OutputMethodArg | None = None ,
You can’t perform that action at this time.
0 commit comments