Skip to content

Spec change: clarify that assert_type() uses equivalence #45

@JelleZijlstra

Description

@JelleZijlstra

Please consider the proposed spec change in python/typing#2011. It specifies that assert_type() uses equivalence, but type checkers are allowed to have an incomplete implementation that rejects some equivalent types. Discussion in https://discuss.python.org/t/specify-that-assert-type-checks-for-equivalence/92967

Signoff:

  • Carl
  • Eric
  • Jelle
  • Jukka
  • Rebecca

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions