stdlib: fix many attributes which are read-only at runtime but read-write in the stub (#7395)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-02-27 16:23:09 -08:00
1 parent 46da0b87ea
commit a0b41959ec
17 files changed
+104 -50

No files matched your search

+5 -1
View File
@@ -29,7 +29,11 @@ class shlex(Iterable[str]):
lineno: int
token: str
eof: str
punctuation_chars: str
if sys.version_info >= (3, 7):
@property
def punctuation_chars(self) -> str: ...
else:
punctuation_chars: str
def __init__(
self,
instream: str | TextIO | None = ...,