wikit-ai / olaf

6 stars 1 forks source link

Check for circular imports and enforce import order #25

Closed ba-talibe closed 4 months ago

ba-talibe commented 5 months ago

After using the cProfile built-in Python package, it turns out that most of the import time might come from circular imports, forcing some locking and unlocking processes. We should check for those and enforce import orders.

schmarion commented 5 months ago

Vérifier les imports circulaires dans le framework.

Par exemple dans olaf>pipeline>pipeline_component>pipeline_component_schema.py dans la méthode run, l'attribut pipeline est de type Any car si on le met de type Pipeline le code plante à cause de imports circulaires.