Skip to content

Commit 8da3b3e

Browse files
committed
Some details
Added one docstring, and some info about methods' arguments.
1 parent 010a917 commit 8da3b3e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python_password/PyPassword.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def ctx_password(self, instance):
132132
)
133133
ctx_dialog.open()
134134

135-
def detailed_info(self, name):
135+
def detailed_info(self, name: str):
136136
"""Opens dialog about specific info about program in ``info`` screen."""
137137
info_dialog = MDDialog(
138138
title=f'[color={self.text_color_hex}]' +
@@ -283,7 +283,7 @@ def del_password(self, password=None, force=False):
283283
)
284284
result_dialog.open()
285285

286-
def _del_password_confirm(self, password):
286+
def _del_password_confirm(self, password: str):
287287
del_password(password)
288288
result_dialog = SimpleDialog(
289289
title='Success!',
@@ -518,7 +518,8 @@ def switch_theme(self, force=None):
518518
else:
519519
raise NameError('No theme found')
520520

521-
def open_url(self, url):
521+
def open_url(self, url: str):
522+
"""Opens URL in default browser."""
522523
open_new_tab(url)
523524

524525
def dismiss_and_back(self, instance, where='passwords'):

0 commit comments

Comments
 (0)