Skip to content

Commit 663e345

Browse files
committed
file size reporting
1 parent 7c20089 commit 663e345

File tree

7 files changed

+4
-16
lines changed

7 files changed

+4
-16
lines changed

sentience/generator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
Script Generator - converts trace into executable code
33
"""
44

5-
import json
6-
from typing import List, Optional
7-
8-
from .query import find
95
from .recorder import Trace, TraceStep
106

117

sentience/llm_provider.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from abc import ABC, abstractmethod
77
from dataclasses import dataclass
8-
from typing import Any, Dict, Optional
98

109

1110
@dataclass

sentience/query.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"""
44

55
import re
6-
from typing import Any, Dict, List, Optional, Union
6+
from typing import Any
77

88
from .models import Element, Snapshot
99

1010

11-
def parse_selector(selector: str) -> dict[str, Any]:
11+
def parse_selector(selector: str) -> dict[str, Any]: # noqa: C901
1212
"""
1313
Parse string DSL selector into structured query
1414
@@ -136,7 +136,7 @@ def parse_selector(selector: str) -> dict[str, Any]:
136136
return query
137137

138138

139-
def match_element(element: Element, query: dict[str, Any]) -> bool:
139+
def match_element(element: Element, query: dict[str, Any]) -> bool: # noqa: C901
140140
"""Check if element matches query criteria"""
141141

142142
# Role exact match

sentience/screenshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Screenshot functionality - standalone screenshot capture
33
"""
44

5-
from typing import Any, Dict, Literal, Optional
5+
from typing import Any, Literal
66

77
from .browser import SentienceBrowser
88

sentience/wait.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import time
6-
from typing import Optional, Union
76

87
from .browser import SentienceBrowser
98
from .models import WaitResult

tests/test_snapshot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import pytest
66

77
from sentience import SentienceBrowser, snapshot
8-
from sentience.models import Snapshot
9-
108

119
@pytest.mark.requires_extension
1210
def test_snapshot_basic():

tests/test_wait.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
Tests for wait functionality
33
"""
44

5-
import os
6-
7-
import pytest
8-
95
from sentience import SentienceBrowser, expect, wait_for
106

117

0 commit comments

Comments
 (0)