Skip to content

Commit

Permalink
fixed circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
KiloOscarSix committed May 3, 2023
1 parent 941ccd5 commit cda6300
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 5 additions & 3 deletions CharacterService_ren.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
from __future__ import annotations
from typing import Optional
from typing import Optional, TYPE_CHECKING

from renpy import store
import renpy.exports as renpy

from game.characters.Relationship_ren import Relationship
from game.characters.Moods_ren import Moods
from game.characters.NonPlayableCharacter_ren import NonPlayableCharacter
from game.characters.PlayableCharacters_ren import PlayableCharacter

if TYPE_CHECKING:
from game.characters.NonPlayableCharacter_ren import NonPlayableCharacter
from game.characters.PlayableCharacters_ren import PlayableCharacter

"""renpy
init python:
Expand Down
9 changes: 5 additions & 4 deletions PlayableCharacters_ren.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from __future__ import annotations
from dataclasses import dataclass, field
from typing import Optional

from game.characters.Frat_ren import Frat
from typing import Optional, TYPE_CHECKING

from renpy import store
import renpy.exports as renpy

from game.detective.Detective_ren import Detective
from game.characters.Frat_ren import Frat
from game.characters.CharacterService_ren import CharacterService
from game.characters.Relationship_ren import Relationship

if TYPE_CHECKING:
from game.detective.Detective_ren import Detective

"""renpy
init python:
"""
Expand Down

0 comments on commit cda6300

Please sign in to comment.