MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / is_pending

Method is_pending

enterprise/storage/device_code.py:69–71  ·  view source on GitHub ↗

Check if the device code is still pending authorization.

(self)

Source from the content-addressed store, hash-verified

67 return now > expires_at
68
69 def is_pending(self) -> bool:
70 """Check if the device code is still pending authorization."""
71 return self.status == DeviceCodeStatus.PENDING.value and not self.is_expired()
72
73 def is_authorized(self) -> bool:
74 """Check if the device code has been authorized."""

Callers 4

test_is_pendingMethod · 0.95
authorize_device_codeMethod · 0.80
deny_device_codeMethod · 0.80

Calls 1

is_expiredMethod · 0.95

Tested by 1

test_is_pendingMethod · 0.76