From 0a12576df46b5db58a7378287ccc1819c2bff269 Mon Sep 17 00:00:00 2001 From: "Evan J. Markowitz" Date: Sun, 13 Apr 2025 19:02:14 -0400 Subject: [PATCH] Fix type comment in `Element_.sourceline` This resolves #93 by correctly defining the type of `Element_.sourceline` Thanks! --- lxml-stubs/etree.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxml-stubs/etree.pyi b/lxml-stubs/etree.pyi index bae7f34..1705b15 100644 --- a/lxml-stubs/etree.pyi +++ b/lxml-stubs/etree.pyi @@ -227,7 +227,7 @@ class _Element(Iterable["_Element"], Sized): text = ... # type: Optional[str] tail = ... # type: Optional[str] prefix = ... # type: str - sourceline = ... # Optional[int] + sourceline = ... # type: Optional[int] @property def nsmap(self) -> Dict[Optional[str], str]: ... base = ... # type: Optional[str]