Skip to content

Planning Session

Rebecca Chen edited this page Jul 24, 2019 · 4 revisions

Notes: https://docs.google.com/document/d/1PIOvLZyep1qVqTq5P3wcI6TNe5UkKbR52qHjSZ1EuDU/edit

Issues

  • Agreed on preferring class-based syntax for NamedTuple and TypedDict
  • What code generation decorators should be supported? (dataclass?)
  • mypy may not support PEP 570 when run under < Python 3.8, but the draft PEP says that stubs can start to use new features as soon as a version is released.
  • Should __all__ be supported in stubs to avoid exposing private definitions?
  • Should we recommend to never report errors in/for conforming third party stubs?

PRs

Unfinished content

Supported Constructs > Enums

Supported Constructs > NamedTuple

Supported Constructs > TypeVar

Supported Constructs > NewType

Supported Constructs > __getattr__, __setattr__

  • Also mentioned in Content section

Supported Constructs > Module-level __getattr__

  • Also mentioned in Content section

Supported Constructs > Is __all__ meaningful in a stub? What does it do?

Supported Constructs > Forward references don't need quotes or a __future__ import

  • Also mentioned in Style section

Supported Constructs > How to treat definitions with a leading underscore?

Supported Constructs > Callback protocols

Supported Constructs > Module-level asserts

Release Planning

  1. Finish Writing
  2. Editorial Pass
  3. Find a sponsor?
  4. Submit as PEP
  5. Post publically (typing-sig? python-dev?)