Added OTP Activity Review WIP
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import logging
|
||||
from typing import List
|
||||
from typing import List, Optional
|
||||
|
||||
from textual.containers import Horizontal, Vertical
|
||||
from textual.css.query import NoMatches
|
||||
@@ -31,7 +31,11 @@ class OTPGenerator(Widget):
|
||||
|
||||
class OTPInfo(Message):
|
||||
def __init__(
|
||||
self, devices: List[Agent], requestor: str, reasoning: str, duration: int
|
||||
self,
|
||||
devices: Optional[List[Agent]],
|
||||
requestor: str,
|
||||
reasoning: str,
|
||||
duration: int,
|
||||
):
|
||||
super().__init__()
|
||||
self.devices = devices
|
||||
@@ -243,7 +247,7 @@ class OTPGenerator(Widget):
|
||||
self.otp_generated = True
|
||||
|
||||
# Access API from the app - this is the key change!
|
||||
api = self.app.api
|
||||
api = self.app.api # type: ignore
|
||||
|
||||
output_lines = [
|
||||
"Requested OTP Codes:",
|
||||
|
||||
Reference in New Issue
Block a user