Skip to content

Commit 16e75d6

Browse files
committed
[et_xmlfile] Complete the writer_cm annotation
1 parent 58fdb3d commit 16e75d6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

stubs/et_xmlfile/et_xmlfile/xmlfile.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import types
22
import xml.etree.ElementTree as ET
3-
from _typeshed import Incomplete
43
from collections.abc import Generator
5-
from contextlib import contextmanager
4+
from contextlib import _GeneratorContextManager, contextmanager
65
from typing import Any
76

87
class LxmlSyntaxError(Exception): ...
@@ -27,7 +26,7 @@ class _IncrementalFileWriter:
2726

2827
class xmlfile:
2928
encoding: str
30-
writer_cm: Incomplete
29+
writer_cm: _GeneratorContextManager[tuple[ET._FileWrite, str]] | None
3130
def __init__(
3231
self, output_file: ET._FileWrite, buffered: bool = False, encoding: str = "utf-8", close: bool = False
3332
) -> None: ...

0 commit comments

Comments
 (0)