mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-11 06:21:57 +08:00
Mark many attributes as read-only properties (#7591)
This commit is contained in:
@@ -82,7 +82,8 @@ class EncodingBytes(bytes):
|
||||
def getPosition(self): ...
|
||||
position: Any
|
||||
def getCurrentByte(self): ...
|
||||
currentByte: Any
|
||||
@property
|
||||
def currentByte(self): ...
|
||||
def skip(self, chars=...): ...
|
||||
def skipUntil(self, chars): ...
|
||||
def matchBytes(self, bytes): ...
|
||||
|
||||
@@ -15,7 +15,8 @@ class DocumentType:
|
||||
class Document:
|
||||
def __init__(self) -> None: ...
|
||||
def appendChild(self, element) -> None: ...
|
||||
childNodes: Any
|
||||
@property
|
||||
def childNodes(self): ...
|
||||
|
||||
def testSerializer(element): ...
|
||||
def tostring(element): ...
|
||||
|
||||
Reference in New Issue
Block a user