Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
4d87bba6
Unverified
Commit
4d87bba6
authored
Aug 24, 2019
by
Bryce Drennan
Committed by
GitHub
Aug 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1320 from toppk/develop
remove NoReturn, use None instead
parents
335da0db
7b07ae05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
poetry/utils/helpers.py
+2
-3
No files found.
poetry/utils/helpers.py
View file @
4d87bba6
...
...
@@ -7,7 +7,6 @@ import tempfile
from
contextlib
import
contextmanager
from
typing
import
List
from
typing
import
NoReturn
from
typing
import
Optional
from
keyring
import
delete_password
,
set_password
,
get_password
...
...
@@ -102,7 +101,7 @@ def keyring_repository_password_get(
def
keyring_repository_password_set
(
repository_name
,
username
,
password
):
# type: (str, str, str) -> No
Return
):
# type: (str, str, str) -> No
ne
try
:
set_password
(
keyring_service_name
(
repository_name
),
username
,
password
)
except
(
RuntimeError
,
KeyringError
):
...
...
@@ -111,7 +110,7 @@ def keyring_repository_password_set(
def
keyring_repository_password_del
(
config
,
repository_name
):
# type: (Config, str) -> No
Return
):
# type: (Config, str) -> No
ne
try
:
repo_auth
=
config
.
get
(
"http-basic.{}"
.
format
(
repository_name
))
if
repo_auth
and
"username"
in
repo_auth
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment