Skip to content

Commit

Permalink
✨ Fix some linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisFederico committed Feb 11, 2022
1 parent 3842496 commit dbddeb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pyflow/blocks/codeblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

""" Module for the base Code Block."""

from typing import OrderedDict, Tuple
from typing import TYPE_CHECKING, OrderedDict, Tuple

from ansi2html import Ansi2HTMLConverter
from PyQt5.QtGui import QColor, QPen
Expand All @@ -16,6 +16,9 @@

ansi2html_converter = Ansi2HTMLConverter()

if TYPE_CHECKING:
from PyQt5.QtWidgets import QGraphicsSceneHoverEvent


class CodeBlock(ExecutableBlock):

Expand Down
2 changes: 1 addition & 1 deletion pyflow/graphics/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def drag_edge(self, event: QMouseEvent, action="press"):
LOGGER.debug("Start draging edge from existing socket.")
return
# If it is the add edge button, create a new socket and a new edge from it.
elif (
if (
isinstance(item_at_click, AddEdgeButton)
and self.mode != self.MODE_EDGE_DRAG
):
Expand Down

0 comments on commit dbddeb2

Please sign in to comment.