• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SPF-OST / pytrnsys_gui / 11662562960

29 Oct 2024 03:09PM UTC coverage: 67.508% (-0.08%) from 67.591%
11662562960

push

github

web-flow
Merge pull request #564 from SPF-OST/560-black-change-line-length-to-pep8-standard-of-79-and-check-ci-reaction

changed line length in black to 79

1054 of 1475 new or added lines in 174 files covered. (71.46%)

150 existing lines in 74 files now uncovered.

10399 of 15404 relevant lines covered (67.51%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/trnsysGUI/connection/addDoublePipeConnectionCommand.py
1
from __future__ import annotations
1✔
2

3
import typing as _tp
1✔
4

5
import PyQt5.QtWidgets as _qtw
1✔
6

7
import trnsysGUI.connection.doublePipeConnection as _dpc
1✔
8
import trnsysGUI.connection.undo as _cundo
1✔
9
import trnsysGUI.names.undo as _nu
1✔
10

11
if _tp.TYPE_CHECKING:
1✔
12
    import trnsysGUI.diagram.Editor as _ed
×
13

14

15
class AddDoublePipeConnectionCommand(_qtw.QUndoCommand):
1✔
16
    def __init__(
1✔
17
        self,
18
        connection: _dpc.DoublePipeConnection,
19
        undoNamingHelper: _nu.UndoNamingHelper,
20
        editor: _ed.Editor,  # type: ignore[name-defined]
21
    ) -> None:
22
        super().__init__("Create double pipe connection")
×
23
        self._connection = connection
×
24
        self._undoNamingHelper = undoNamingHelper
×
25
        self._editor = editor
×
26

27
    def redo(self):
1✔
28
        _cundo.setDisplayNameForReAdd(self._connection, self._undoNamingHelper)
×
29
        _cundo.reAddConnection(self._connection)
×
30
        self._editor.diagramScene.addItem(self._connection)
×
31

32
    def undo(self):
1✔
33
        self._editor.diagramScene.removeItem(self._connection)
×
34
        self._connection.deleteConnection()
×
NEW
35
        self._undoNamingHelper.removeNameForDelete(
×
36
            self._connection.displayName
37
        )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc