Skip to content

Conversation

KennethEnevoldsen
Copy link
Contributor

related to: #1124
required for: #2714

Seems like we in multiple places denote the module instead of the intended TaskMetada. This rename should fix that issue

relies on PR #2828

This refactors imports following this pattern:

```py
# tasks/__init__
from .Retrieval import *
# tasks/retrieval/__init__
from .eng import *
# tasks/retrieval/eng/__init__
from .task1 import Task1
```
proposed by @Samoed in #2825. This should reduce the number of imports required, while not exposing any of the module requires at the task definition.
related to: #1124
required for: #2714

Seems like we in multiple places denote the module instead of the intended TaskMetada. This rename should fix that issue

relies on PR #2828
@KennethEnevoldsen KennethEnevoldsen self-assigned this Jun 16, 2025
@KennethEnevoldsen KennethEnevoldsen added the v2 Issues and PRs related to `v2` branch label Jun 16, 2025
Base automatically changed from simplify-imports to v2.0.0 June 17, 2025 06:14
@KennethEnevoldsen KennethEnevoldsen requested a review from Samoed June 17, 2025 06:15
@KennethEnevoldsen KennethEnevoldsen changed the title fix: : rename TaskMetadata.py to resolve class/module ambiguity fix: rename TaskMetadata.py to resolve class/module ambiguity Jun 24, 2025
@KennethEnevoldsen KennethEnevoldsen merged commit 02c82d6 into v2.0.0 Jun 24, 2025
5 of 9 checks passed
@KennethEnevoldsen KennethEnevoldsen deleted the improve-module-names branch June 24, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Issues and PRs related to `v2` branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants