Thanks to Jelle for presenting today!

The recording, slides, meeting notes, and chat transcript are in the running meetup notes doc: https://docs.google.com/document/d/17iqV7WWvB0IwA43EPlIqlUS6Xuvk08X3sEudAA-gQIo/edit?usp=sharing

Notes:
  • @deprecated: Jelle proposed a decorator that allows functions (and overloads?) to be considered deprecated. The type checker should report the error message mentioned in the decorator argument.

    • Example:

@deprecated("Use inspect.signature instead")

def getargspec() -> None: ... 

  • The overall feedback was positive.

  • @typing_error: Jelle also proposed making certain combinations of parameter types to be deprecated

    • Example:

@typing_error("Using pow() with a mod of 0 will throw a runtime error")

def pow(base: int, exp: int, mod: Literal[0]) -> Never: …

  • Feedback from the audience: The above overload doesn’t help prevent pow(x, y, 1 - 1) since that won’t match the above overload. Other examples are needed to motivate this feature.

  • PyCon Typing Summit 2023: We decided to have another summit at PyCon, given that the last one was well-received and the 2023 proposal deadline is coming up. Jelle and Pradeep agreed to co-organize the event. We will probably reach out to speakers early next year.


If you're interested in presenting next time, shoot me an email.


Best,
Pradeep


Jelle's slides: https://docs.google.com/presentation/d/1yzAh1Tok_wIk3lYo3rq1ieQp8MciVzO7pWI_m_LY30Y/edit?usp=sharing

On Tue, Nov 15, 2022 at 9:29 AM S Pradeep Kumar <gohanpra@gmail.com> wrote:
Quick reminder that the Typing Meetup is today (in half an hour): 10 am San Francisco time (UTC-8) / 6:00 pm London time (UTC).

Zoom link: https://us02web.zoom.us/j/89193699423 [1]. The meeting will be automatically recorded from the time it starts.

Agenda: 
  • Jelle Zijlstra, Typing support for @deprecated and @typing_error

--
S Pradeep Kumar


--
S Pradeep Kumar