Skip to content

Commit

Permalink
Remove typing.Protocol to support Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Hailin-Wang committed Jul 24, 2022
1 parent a4d9282 commit ee7e845
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ribbon/typehints.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from PyQt5 import QtCore, QtWidgets


class PyQtSignalType(typing.Protocol):
class PyQtSignalType:
"""This is a protocol for the pyqt signal type."""

def connect(self, slot):
Expand All @@ -16,13 +16,13 @@ def emit(self, *args):
...


class PyQtActionType(typing.Protocol):
class PyQtActionType:
"""This is a protocol for the pyqt action type."""

triggered: PyQtSignalType


class RibbonType(typing.Protocol):
class RibbonType:
"""
This is a protocol for the ribbon type for type hints in categories for getting the tabRect.
"""
Expand Down

0 comments on commit ee7e845

Please sign in to comment.