Skip to content

Introducing generic typing in MultiJob for self.children#399

Open
SiebeLeDe wants to merge 4 commits into
SCM-NV:trunkfrom
SiebeLeDe:trunk
Open

Introducing generic typing in MultiJob for self.children#399
SiebeLeDe wants to merge 4 commits into
SCM-NV:trunkfrom
SiebeLeDe:trunk

Conversation

@SiebeLeDe
Copy link
Copy Markdown

Solves #398 about type errors because the self.children attribute in MultiJob was not generically typed.

Changes

  • Added Generic Job type to the MultiJob class, including the methods new_children, other_jobs, remove_child, and dunder method __iter__
  • Changed the self.children type from List[J] to Union[List[J], Dict[J]]

No (new) tests have been written since these changes only affect the Python linter and typechecker in the text editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant