Skip to content

Rename the _types module to ecs_types.#2564

Closed
mjwolf wants to merge 2 commits intomainfrom
fix-python-type-conflict
Closed

Rename the _types module to ecs_types.#2564
mjwolf wants to merge 2 commits intomainfrom
fix-python-type-conflict

Conversation

@mjwolf
Copy link
Contributor

@mjwolf mjwolf commented Nov 3, 2025

1. What does this PR do?

Modules with leading underscore are reserved for internal use, and in newer version of python there is an internal _types module which conflicts with the ecs _types. The ECS module is renamed to ecs_types, to remove the conflict with the internal _types.

2. Which ECS fields are affected/introduced?

None

3. Why is this change necessary?

This fixed a build error when using Python 3.14.0+

4. Have you added/updated documentation?

N/A

5. Have you built ECS and committed any newly generated files?

YES

6. Have you run the ECS validation tests locally?

YES

7. Anything else for the reviewers?


Commit Message

Modules with leading underscore are reserved for internal use, and in newer version of python there is an internal _types module which conflicts with the ecs _types. The ECS module is renamed to ecs_types, to remove the conflict with the internal _types.

Rename the _types module to ecs_types.

Modules with leading underscore are reserved for internal use, and in
newer version of python there is an internal _types module which
conflicts with the ecs _types. The ECS module is renamed to ecs_types,
to remove the conflict with the internal type.
@mjwolf mjwolf requested a review from a team as a code owner November 3, 2025 17:44
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@trisch-me
Copy link
Contributor

This PR could be closed after your commits being merged through my PR

@trisch-me trisch-me closed this Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants