style: type hints corrections and docstrings

This commit is contained in:
Karim shoair
2025-07-30 00:32:39 +03:00
parent ba585c0adc
commit 18660f8132
7 changed files with 31 additions and 20 deletions
+8 -4
View File
@@ -1,9 +1,13 @@
class SelectorsGeneration:
"""Selectors generation functions
"""
Functions for generating selectors
Trying to generate selectors like Firefox or maybe cleaner ones!? Ehm
Inspiration: https://searchfox.org/mozilla-central/source/devtools/shared/inspector/css-logic.js#591"""
Inspiration: https://searchfox.org/mozilla-central/source/devtools/shared/inspector/css-logic.js#591
"""
def __general_selection(self, selection: str = "css", full_path=False) -> str:
def __general_selection(
self, selection: str = "css", full_path: bool = False
) -> str:
"""Generate a selector for the current element.
:return: A string of the generated selector.
"""
@@ -80,7 +84,7 @@ class SelectorsGeneration:
@property
def generate_xpath_selector(self) -> str:
"""Generate a XPath selector for the current element
"""Generate an XPath selector for the current element
:return: A string of the generated selector.
"""
return self.__general_selection("xpath")