Skip to content

Conversation

@DimitriPapadopoulos
Copy link
Contributor

Issue introduced by 16b53ac / #8937.

It looks like the sys.version_info >= (3, 11) test is incorrect, as typing.TypeAlias was added in version 3.10, not 3.11:

Added in version 3.10.

Note that TypeAlias itself will be deprecated:

Deprecated since version 3.12: TypeAlias is deprecated in favor of the type statement, which creates instances of TypeAliasType and which natively supports forward references. Note that while TypeAlias and TypeAliasType serve similar purposes and have similar names, they are distinct and the latter is not the type of the former. Removal of TypeAlias is not currently planned, but users are encouraged to migrate to type statements.

  • Closes #xxxx
  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst
  • New functions/methods are listed in api.rst

Issue introduced by 16b53ac / pydata#8937.

It looks like the `sys.version_info >= (3, 11)` test is incorrect, as
`typing.TypeAlias`  was added in version 3.10, not 3.11:
	https://docs.python.org/3/library/typing.html#typing.TypeAlias
@max-sixty
Copy link
Collaborator

yes nice spot!

@max-sixty max-sixty merged commit e71bb12 into pydata:main Jun 30, 2025
30 of 33 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the PTC-W0051 branch July 1, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants