Skip to content

Commit 83f445d

Browse files
authored
Fix type comment in Element_.sourceline (GH-104)
This resolves #93 by correctly defining the type of `Element_.sourceline`
1 parent 4a053b9 commit 83f445d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lxml-stubs/etree.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class _Element(Iterable["_Element"], Sized):
227227
text = ... # type: Optional[str]
228228
tail = ... # type: Optional[str]
229229
prefix = ... # type: str
230-
sourceline = ... # Optional[int]
230+
sourceline = ... # type: Optional[int]
231231
@property
232232
def nsmap(self) -> Dict[Optional[str], str]: ...
233233
base = ... # type: Optional[str]

0 commit comments

Comments
 (0)