Skip to content

Commit 4bd50d3

Browse files
committed
docs: update argument syntax from '--' to ':' in method docstrings
1 parent 10def22 commit 4bd50d3

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

pydoll/browser/options.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def set_default_download_directory(self, path: str):
171171
Usage: Sets the 'download.default_directory' preference for Chrome.
172172
173173
Arguments:
174-
path -- Absolute path to the download destination folder.
174+
path: Absolute path to the download destination folder.
175175
"""
176176
self._set_pref_path(['download', 'default_directory'], path)
177177

@@ -182,7 +182,7 @@ def set_accept_languages(self, languages: str):
182182
Usage: Sets the 'intl.accept_languages' preference.
183183
184184
Arguments:
185-
languages -- A comma-separated string of language codes (e.g., 'pt-BR,pt,en-US,en').
185+
languages: A comma-separated string of language codes (e.g., 'pt-BR,pt,en-US,en').
186186
"""
187187
self._set_pref_path(['intl', 'accept_languages'], languages)
188188

@@ -198,7 +198,7 @@ def prompt_for_download(self, enabled: bool):
198198
Usage: Sets the 'download.prompt_for_download' preference.
199199
200200
Arguments:
201-
enabled -- If True, Chrome will ask for confirmation before downloading.
201+
enabled: If True, Chrome will ask for confirmation before downloading.
202202
"""
203203
self._set_pref_path(['download', 'prompt_for_download'], enabled)
204204

@@ -214,7 +214,7 @@ def block_popups(self, block: bool):
214214
Usage: Sets the 'profile.default_content_setting_values.popups' preference.
215215
216216
Arguments:
217-
block -- If True, pop-ups will be blocked (value = 0); otherwise allowed (value = 1).
217+
block: If True, pop-ups will be blocked (value = 0); otherwise allowed (value = 1).
218218
"""
219219
self._set_pref_path(
220220
['profile', 'default_content_setting_values', 'popups'], 0 if block else 1
@@ -232,7 +232,7 @@ def password_manager_enabled(self, enabled: bool):
232232
Usage: Sets the 'profile.password_manager_enabled' preference.
233233
234234
Arguments:
235-
enabled -- If True, the password manager is active.
235+
enabled: If True, the password manager is active.
236236
"""
237237
self._set_pref_path(['profile', 'password_manager_enabled'], enabled)
238238
self._set_pref_path(['credentials_enable_service'], enabled)
@@ -253,7 +253,7 @@ def block_notifications(self, block: bool):
253253
Usage: Sets the 'profile.default_content_setting_values.notifications' preference.
254254
255255
Arguments:
256-
block -- If True, notifications will be blocked (value = 2);
256+
block: If True, notifications will be blocked (value = 2);
257257
otherwise allowed (value = 1).
258258
"""
259259
self._set_pref_path(
@@ -280,7 +280,7 @@ def allow_automatic_downloads(self, allow: bool):
280280
Usage: Sets the 'profile.default_content_setting_values.automatic_downloads' preference.
281281
282282
Arguments:
283-
allow -- If True, automatic downloads are allowed (value = 1);
283+
allow: If True, automatic downloads are allowed (value = 1);
284284
otherwise blocked (value = 2).
285285
"""
286286
self._set_pref_path(
@@ -300,7 +300,7 @@ def open_pdf_externally(self, enabled: bool):
300300
Usage: Sets the 'profile.managed_default_content_settings.geolocation' preference.
301301
302302
Arguments:
303-
block -- If True, location access is blocked (value = 2); otherwise allowed (value = 1).
303+
block: If True, location access is blocked (value = 2); otherwise allowed (value = 1).
304304
"""
305305
self._set_pref_path(['plugins', 'always_open_pdf_externally'], enabled)
306306

pydoll/commands/storage_commands.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,6 @@ def get_related_website_sets() -> GetRelatedWebsiteSetsCommand:
528528
Related Website Sets are an API that allows sites under the same entity
529529
to share some data, despite third-party cookie restrictions.
530530
531-
Args:
532-
sets: list of RelatedWebsiteSet objects.
533-
534531
Returns:
535532
GetRelatedWebsiteSetsCommand: The CDP command to get related website sets.
536533
"""
@@ -657,7 +654,7 @@ def set_attribution_reporting_local_testing_mode(
657654
by removing restrictions like delays and rate limits that would normally apply.
658655
659656
Args:
660-
enable: True to enable local testing mode, False to disable it.
657+
enabled: True to enable local testing mode, False to disable it.
661658
662659
Returns:
663660
SetAttributionReportingLocalTestingModeCommand: The CDP command to set Attribution

0 commit comments

Comments
 (0)