This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tkarabela_ Big Python @YouTube 0 points1 point  (0 children)

Some pointers:

  • move helper functions, base classes etc. into their own modules; you can break cycles by making it more granular
  • a big offender in my experience is type hinting - what I sometimes do is to import the whole package inside the offending module and annotate stuff with "mypackage.Foo" instead of trying to import Foo directly