Skip to content

Commit

Permalink
additional emit in comments, * to enforce kweyword arguments only
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrou committed Jan 16, 2025
1 parent f20dd3a commit 8fba387
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pyoncatqt/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class ONCatLogin(QGroupBox):
connection_updated = Signal(bool)

def __init__(
self: QGroupBox, client_id: str = None, key: str = None, parent: QWidget = None, **kwargs: Dict[str, Any]
self: QGroupBox, *, client_id: str = None, key: str = None, parent: QWidget = None, **kwargs: Dict[str, Any]
) -> None:
"""
Initialize the ONCatLogin widget.
Expand Down Expand Up @@ -252,7 +252,7 @@ def update_connection_status(self: QGroupBox) -> None:
self.status_label.setText("ONCat: Disconnected")
self.status_label.setStyleSheet("color: red")

self.connection_updated.emit(self.is_connected)
# self.connection_updated.emit(self.is_connected)

@property
def is_connected(self: QGroupBox) -> bool:
Expand All @@ -264,6 +264,7 @@ def is_connected(self: QGroupBox) -> bool:
bool
True if connected, False otherwise.
"""

try:
self.agent.Facility.list()
return True
Expand Down

0 comments on commit 8fba387

Please sign in to comment.