Mark many attributes as read-only properties (#7591)

This commit is contained in:
Alex Waygood
2022-04-05 07:37:24 +01:00
committed by GitHub
parent b8f2eb3930
commit 85aec034ae
28 changed files with 189 additions and 93 deletions
@@ -58,7 +58,8 @@ class Element(Any): # html5lib.treebuilders.base.Node
def cloneNode(self): ...
def hasContent(self): ...
def getNameTuple(self): ...
nameTuple: Any
@property
def nameTuple(self): ...
class TextNode(Element):
element: Any
+2 -1
View File
@@ -262,7 +262,8 @@ class Tag(PageElement):
def __copy__(self: Self) -> Self: ...
@property
def is_empty_element(self) -> bool: ...
isSelfClosing = is_empty_element
@property
def isSelfClosing(self) -> bool: ...
@property
def string(self) -> str | None: ...
@string.setter