GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — [configparser] Add several deprecated attributes by donbarbos · Pull Request #14487 · python/typeshed Conversation
|
|
The same PR also removed a deprecated parameter from ParsingError, which isn't reflected in the stubs yet. Might as well add that as well while we're here! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks, again it seems to me that it is worth adding some removed deprecated methods since they reflected some capabilities of if sys.version_info < (3, 12): @property @deprecated("Removed in Python 3.12. Use `source` instead.") def filename(self) -> str: ... @filename.setter @deprecated("Removed in Python 3.12. Use `source` instead.") def filename(self, value: str) -> None: ... @deprecated("Removed in Python 3.12. Use `parser.read_file()` instead.") def readfp(self, fp: Iterable[str], filename: str | None = None) -> None: ... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looks like they were documented APIs, so adding them sounds reasonable to me |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
SafeConfigParser
Indeed, I didn't notice that they were documented |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.