Tag Archives: circular

Python Type Hinting : Eliminating ImportError Due to Circular Imports – Python Dev Feed

Python Type Hinting : Eliminating ImportError Due to Circular Imports We all face sometimes ImportError due to having a circular import that is occurred only for type hinting. There is a simple way to handle this kind of problem.Let’s take we have two files like following: #book_manager.py from django.db import models class BookManager(models.Manager): def create_new_version_of_book(self,…

Read More

How i fixed the circular dependency issue in my Node.js application – JavaScript Dev Feed

How i fixed the circular dependency issue in my Node.js application I’m going introduce you in a problem that maybe you’ve been through and some point in your node.js career. Usually i split my business logic from anything else in my code (let’s name it as a service), been my business layer responsible to trigger…

Read More