Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # employee.py ===============
- # This is required for the type hinting, which affects actual execution behavior
- from typing import TYPE_CHECKING
- if TYPE_CHECKING:
- from .company import Company
- class Employee(Object):
- company: Company
- # company.py ===============
- # Also required
- from typing import Sequence, TYPE_CHECKING
- if TYPE_CHECKING:
- from .employee import Employee
- class Company(Object):
- employees: Sequence[Employee]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement