[Python-Dev] RFC on PEP 675: Arbitrary Literal Strings

2022-02-07 Thread Pradeep Kumar Srinivasan
PEP 675 [1] introduces a supertype for precise literal string types, such as `Literal["foo"]`, called `LiteralString`. The PEP allows libraries to distinguish the type of command strings from data. Powerful, command-executing libraries try to prevent security vulnerabilities by accepting argume

[Python-Dev] RFC on PEP 673: Self Type

2021-11-16 Thread Pradeep Kumar Srinivasan
have reached consensus on the PEP in typing-sig [3], we wanted to get your comments and suggestions before submitting to the Steering Council. Thanks, Pradeep Kumar Srinivasan James Hilton-Balfe [1]: https://www.python.org/dev/peps/pep-0673/ [2]: Adding `Self` to typing_extensions.py: https

[Python-Dev] Re: RFC on Callable Type Syntax

2021-10-15 Thread Pradeep Kumar Srinivasan
Thanks for the responses, everyone. Overall, it seems like there were no strong objections to the proposal. I didn't hear much about Question 2, though: Should we propose features beyond present-day `Callable` in the same PEP or defer it to a future PEP? In case that question got lost in the ot