style: Removing dead code/docstrings and correcting type hints

This commit is contained in:
Karim shoair
2025-09-19 04:49:30 +03:00
parent bf5fe6d451
commit a9d05cc0ef
5 changed files with 8 additions and 16 deletions
+1 -7
View File
@@ -6,7 +6,7 @@ from playwright.async_api import Page as AsyncPage
from scrapling.core._types import Optional, List, Literal
PageState = Literal["finished", "ready", "busy", "error"] # States that a page can be in
PageState = Literal["ready", "busy", "error"] # States that a page can be in
@dataclass
@@ -62,12 +62,6 @@ class PagePool:
"""Get the total number of pages"""
return len(self.pages)
@property
def finished_count(self) -> int:
"""Get the number of finished pages"""
with self._lock:
return sum(1 for p in self.pages if p.state == "finished")
@property
def busy_count(self) -> int:
"""Get the number of busy pages"""