discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984

Preview meta tags from the discuss.python.org website.

Linked Hostnames

8

Thumbnail

Search Engine Appearance

Google

https://discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984

PEP 747: TypeExpr: Type Hint for a Type Expression

TypeExpr[] (formerly TypeForm[]) is a new way to spell variables that hold type expression objects at runtime. They are similar to type[] class objects, but additionally allow matching TypedDicts, generic lists, unions, …



Bing

PEP 747: TypeExpr: Type Hint for a Type Expression

https://discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984

TypeExpr[] (formerly TypeForm[]) is a new way to spell variables that hold type expression objects at runtime. They are similar to type[] class objects, but additionally allow matching TypedDicts, generic lists, unions, …



DuckDuckGo

https://discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984

PEP 747: TypeExpr: Type Hint for a Type Expression

TypeExpr[] (formerly TypeForm[]) is a new way to spell variables that hold type expression objects at runtime. They are similar to type[] class objects, but additionally allow matching TypedDicts, generic lists, unions, …

  • General Meta Tags

    9
    • title
      PEP 747: TypeExpr: Type Hint for a Type Expression - Typing - Discussions on Python.org
    • charset
      utf-8
    • description
      TypeExpr[] (formerly TypeForm[]) is a new way to spell variables that hold type expression objects at runtime. They are similar to type[] class objects, but additionally allow matching TypedDicts, generic lists, unions, …
    • generator
      Discourse 3.5.0.beta9-dev - https://github.com/discourse/discourse version 63328ede0859c0bbe35b7492b630c27201b59711
    • theme-color
      #fff
  • Open Graph Meta Tags

    9
    • og:site_name
      Discussions on Python.org
    • og:type
      website
    • og:image
      https://us1.discourse-cdn.com/flex002/uploads/python1/original/1X/f93ff97c4f381b5e8add5a0c163b4ded29f20ed7.png
    • og:url
      https://discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984
    • og:title
      PEP 747: TypeExpr: Type Hint for a Type Expression
  • Twitter Meta Tags

    9
    • twitter:card
      summary
    • twitter:image
      https://us1.discourse-cdn.com/flex002/uploads/python1/original/1X/f93ff97c4f381b5e8add5a0c163b4ded29f20ed7.png
    • twitter:url
      https://discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984
    • twitter:title
      PEP 747: TypeExpr: Type Hint for a Type Expression
    • twitter:description
      TypeExpr[] (formerly TypeForm[]) is a new way to spell variables that hold type expression objects at runtime. They are similar to type[] class objects, but additionally allow matching TypedDicts, generic lists, unions, literals, and other complex types. Being able to pass around type expressions is especially useful for runtime type checkers: # A variable holding a type expression object. NOT a type alias. INT_OR_STR: TypeExpr = int | str # Call of a function which accepts a type expression a...
  • Item Prop Meta Tags

    68
    • position
      1
    • headline
      PEP 747: TypeExpr: Type Hint for a Type Expression
    • datePublished
      2024-06-17T14:34:41Z
    • articleSection
      Typing
    • keywords
  • Link Tags

    38
    • alternate nofollow
      https://discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984.rss
    • apple-touch-icon
      https://us1.discourse-cdn.com/flex002/uploads/python1/optimized/1X/4c06143de7870c35963b818b15b395092a434991_2_180x180.png
    • canonical
      https://discuss.python.org/t/pep-747-typeexpr-type-hint-for-a-type-expression/55984
    • icon
      https://us1.discourse-cdn.com/flex002/uploads/python1/optimized/1X/9997f0605d56c4bfecd63594f52f42cdafd6b06a_2_32x32.png
    • next
      /t/pep-747-typeexpr-type-hint-for-a-type-expression/55984?page=2

Links

39