Skip to content

Commit

Permalink
Fix type check issue
Browse files Browse the repository at this point in the history
check_systemd.py:1114: error: Function "DBusProxy" could always be true in boolean context  [truthy-function]
check_systemd.py:1114: error: Function "DBusProxyFlags" could always be true in boolean context  [truthy-function]
  • Loading branch information
Josef-Friedrich committed Nov 2, 2024
1 parent b78fe59 commit 73721e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def _bus_type(self) -> BusType:
@property
def _proxy(self) -> DBusProxy:
if self.__proxy is None:
if not DBusProxy or not DBusProxyFlags:
if DBusProxy is None or DBusProxyFlags is None:
raise Exception("The package PyGObject (gi) is not available.")
self.__proxy = DBusProxy.new_for_bus_sync(
self._bus_type,
Expand Down

0 comments on commit 73721e5

Please sign in to comment.