Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions stubs/et_xmlfile/et_xmlfile/xmlfile.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import types
import xml.etree.ElementTree as ET
from _typeshed import Incomplete
from collections.abc import Generator
from contextlib import contextmanager
from collections.abc import Callable, Generator
from contextlib import _GeneratorContextManager, contextmanager
from typing import Any

class LxmlSyntaxError(Exception): ...

class _IncrementalFileWriter:
global_nsmap: dict[str, str]
is_html: bool
def __init__(self, output_file: ET._FileWrite) -> None: ...
def __init__(self, output_file: Callable[[str], object]) -> None: ...
@contextmanager
def element(
self,
Expand All @@ -27,7 +26,7 @@ class _IncrementalFileWriter:

class xmlfile:
encoding: str
writer_cm: Incomplete
writer_cm: _GeneratorContextManager[tuple[Callable[[str], object], str]] | None
def __init__(
self, output_file: ET._FileWrite, buffered: bool = False, encoding: str = "utf-8", close: bool = False
) -> None: ...
Expand Down