From a4a9ff1d5add66b7704376e4aa13ba14e58fbe2e Mon Sep 17 00:00:00 2001 From: nicole pardal Date: Thu, 18 Sep 2025 19:26:03 -0700 Subject: [PATCH] fix for failing lint check --- examples/browser_tool.py | 1 - examples/browser_tool_helpers.py | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/browser_tool.py b/examples/browser_tool.py index 180b851..b2eb982 100644 --- a/examples/browser_tool.py +++ b/examples/browser_tool.py @@ -1,6 +1,5 @@ from __future__ import annotations -import json import os from typing import Any, Dict, List diff --git a/examples/browser_tool_helpers.py b/examples/browser_tool_helpers.py index 20281ef..5a7d987 100644 --- a/examples/browser_tool_helpers.py +++ b/examples/browser_tool_helpers.py @@ -1,12 +1,14 @@ from __future__ import annotations +import re from dataclasses import dataclass, field from datetime import datetime -from typing import Dict, List, Optional, Protocol, Any, Tuple +from typing import Any, Dict, List, Optional, Protocol, Tuple from urllib.parse import urlparse -import re + from ollama import Client + @dataclass class Page: url: str @@ -192,7 +194,7 @@ class Browser: page.lines = [""] total_lines = 1 - if loc != loc or loc < 0: + if loc != loc or loc < 0: loc = 0 elif loc >= total_lines: loc = max(0, total_lines - 1)