FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

`TypeAliasType` raises `TypeError` when union'd with `typing.TypeAliasType` · Issue #574 · python/typing_extensions · GitHub

Repository navigation

TypeAliasType raises TypeError when union'd with typing.TypeAliasType #574

Closed

Description

>>> import typing as t; import typing_extensions as tx
>>> T = t.TypeAliasType("T", object)
>>> TX = tx.TypeAliasType("TX", object)
>>> T | TX
Traceback (most recent call last):
  File "<python-input-5>", line 1, in <module>
    T | TX
    ~~^~~~
TypeError: unsupported operand type(s) for |: 'typing.TypeAliasType' and 'TypeAliasType'

this happens on Python 3.12 and 3.13

Activity

  1. changed the title [-]`TypeAlias` raises `TypeError` when union'd with `typing.TypeAliasType`[/-] [+]`TypeAliasType` raises `TypeError` when union'd with `typing.TypeAliasType`[/+] on Apr 3, 2025
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL