Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions