From 2f3a37cf8e4acf069eab1e03dc7c4f3a5e4ed0be Mon Sep 17 00:00:00 2001 From: T3chC0wb0y Date: Wed, 15 Apr 2026 19:02:04 -0500 Subject: [PATCH] style(msteams): hoist time import --- nanobot/channels/msteams.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nanobot/channels/msteams.py b/nanobot/channels/msteams.py index 04e78f806..d73ed53e3 100644 --- a/nanobot/channels/msteams.py +++ b/nanobot/channels/msteams.py @@ -17,6 +17,7 @@ import importlib.util import json import re import threading +import time from dataclasses import dataclass from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer from typing import TYPE_CHECKING, Any @@ -423,7 +424,6 @@ class MSTeamsChannel(BaseChannel): async def _get_botframework_openid_config(self) -> dict[str, Any]: """Fetch and cache Bot Framework OpenID configuration.""" - import time now = time.time() if self._botframework_openid_config and now < self._botframework_openid_config_expires_at: @@ -440,7 +440,6 @@ class MSTeamsChannel(BaseChannel): async def _get_botframework_jwks(self) -> dict[str, Any]: """Fetch and cache Bot Framework JWKS.""" - import time now = time.time() if self._botframework_jwks and now < self._botframework_jwks_expires_at: @@ -494,7 +493,6 @@ class MSTeamsChannel(BaseChannel): async def _get_access_token(self) -> str: """Fetch an access token for Bot Framework / Azure Bot auth.""" - import time now = time.time() if self._token and now < self._token_expires_at - 60: