Skip to content

Commit

Permalink
Excluding some false-positive Pycharm inspections.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand256 committed Sep 24, 2021
1 parent 2110427 commit cf2d4d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bip44_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,6 @@ def _getrawtransaction(self, txhash, refetch_from_network: bool = False):

def _get_tx_db_id(self, db_cursor, txhash: str, tx_json: Dict = None, create=True) -> Tuple[int, Optional[Dict]]:
"""
:param tx_entry:
:param db_cursor:
:return: Tuple[int <transaction db id>, Optional[Dict <transaction details json>]]
"""
tx_hash = self._wrap_txid(txhash)
Expand Down
2 changes: 2 additions & 0 deletions src/hw_intf.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ def get_hw_client_state_str():
return wrapper


# noinspection PyTypeChecker
class HWDevices(QObject):
"""
Manages information about all hardware wallet devices connected to the computer.
Expand Down Expand Up @@ -937,6 +938,7 @@ def decrypt(ctrl: CtrlObject):
decrypt, (), True, force_close_dlg_callback=partial(cancel_hw_thread_dialog, hw_device.hw_client))


# noinspection PyTypeChecker
class HwSessionInfo(HWSessionBase):
sig_hw_connected = QtCore.pyqtSignal(HWDevice)
sig_hw_disconnected = QtCore.pyqtSignal()
Expand Down
1 change: 1 addition & 0 deletions src/wnd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ def remove_item_from_layout(layout: QLayout, item):
if isinstance(item, QWidgetItem):
w = item.widget()
layout.removeWidget(w)
# noinspection PyTypeChecker
w.setParent(None)
del w
elif isinstance(item, QLayout):
Expand Down

0 comments on commit cf2d4d0

Please sign in to comment.