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
f33c9db2
Commit
f33c9db2
authored
Feb 28, 2022
by
Branch Vincent
Committed by
Bjorn Neergaard
May 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(repositories): remove type errors
parent
ed26721c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
pyproject.toml
+0
-1
src/poetry/repositories/installed_repository.py
+4
-4
No files found.
pyproject.toml
View file @
f33c9db2
...
...
@@ -123,7 +123,6 @@ module = [
'poetry.installation.executor'
,
'poetry.installation.installer'
,
'poetry.installation.pip_installer'
,
'poetry.repositories.installed_repository'
,
'poetry.utils.env'
,
]
ignore_errors
=
true
...
...
src/poetry/repositories/installed_repository.py
View file @
f33c9db2
...
...
@@ -103,7 +103,7 @@ class InstalledRepository(Repository):
)
->
Package
:
# We first check for a direct_url.json file to determine
# the type of package.
path
=
Path
(
str
(
distribution
.
_path
))
path
=
Path
(
str
(
distribution
.
_path
))
# type: ignore[attr-defined]
if
(
path
.
name
.
endswith
(
".dist-info"
)
...
...
@@ -169,7 +169,7 @@ class InstalledRepository(Repository):
@classmethod
def
create_package_from_pep610
(
cls
,
distribution
:
metadata
.
Distribution
)
->
Package
:
path
=
Path
(
str
(
distribution
.
_path
))
path
=
Path
(
str
(
distribution
.
_path
))
# type: ignore[attr-defined]
source_type
=
None
source_url
=
None
source_reference
=
None
...
...
@@ -230,14 +230,14 @@ class InstalledRepository(Repository):
for
entry
in
reversed
(
env
.
sys_path
):
for
distribution
in
sorted
(
metadata
.
distributions
(
path
=
[
entry
]),
key
=
lambda
d
:
str
(
d
.
_path
),
key
=
lambda
d
:
str
(
d
.
_path
),
# type: ignore[attr-defined]
):
name
=
canonicalize_name
(
distribution
.
metadata
[
"name"
])
if
name
in
seen
:
continue
path
=
Path
(
str
(
distribution
.
_path
))
path
=
Path
(
str
(
distribution
.
_path
))
# type: ignore[attr-defined]
try
:
path
.
relative_to
(
_VENDORS
)
...
...
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