Skip to content

Roadmap

David Foster edited this page May 25, 2024 · 101 revisions

Beyond 1.0

v1.3.0

  • Fix issues in the v1.3 milestone:
    • Recognize generic TypedDicts, like Point[int] (#28)

Future

To satisfy the §"Statically narrowing" goal mentioned in trycast's Philosophy:

  • Use TypeForm, to narrow the caller's argument when passing a non-Type
    • Standardize TypeForm:
      • ▶︎ Draft/shepherd PEP for TypeForm so that it can move to typing module
      • ––
      • Wait for a Python 3.x to be released with TypeForm in typing
      • Revise imports of TypeForm to pull from typing module instead of typing_extensions when possible
      • Release 0.y.1 version of trycast
    • ❙ ❙ Implement TypeForm support in mypy -- https://github.com/python/mypy/issues/9773
    • Revise {checkcast, trycast, isassignable} signatures to use TypeForm
  • Use TypeIs instead of TypeGuard, to narrow the caller's argument in the negative case (when passing either a Type or a TypeForm)
    • Shepherd/assist in acceptance of related PEP
    • Revise {checkcast, trycast, isassignable} signatures to use TypeIs

Also:

Support more types:

Clone this wiki locally