Optionals

This commit is contained in:
Ben Meadors committed 2025-03-03 07:56:03 -06:00
1 parent 336e5154a3
commit fb48fc20b3
1 file changed
+3 -3
+3 -3
View File
@@ -707,7 +707,7 @@ class Node:
onResponse = self.onAckNak
return self._sendAdmin(p, onResponse=onResponse)
def backupPreferences(self, location: int = 0):
def backupPreferences(self, location: Optional[int] = 0):
"""Tell the node to backup preferences to flash."""
self.ensureSessionKey()
@@ -720,7 +720,7 @@ class Node:
onResponse = self.onAckNak
return self._sendAdmin(p, onResponse=onResponse)
def restorePreferences(self, location: int = 0):
def restorePreferences(self, location: Optional[int] = 0):
"""Tell the node to restore preferences from backup."""
self.ensureSessionKey()
@@ -733,7 +733,7 @@ class Node:
onResponse = self.onAckNak
return self._sendAdmin(p, onResponse=onResponse)
def removePreferencesBackups(self, location: int = 0):
def removePreferencesBackups(self, location: Optional[int] = 0):
"""Tell the node to remove backup preferences from the filesystem."""
self.ensureSessionKey()