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
b762bfd3
Commit
b762bfd3
authored
May 22, 2022
by
Mathieu Kniewallner
Committed by
Bjorn Neergaard
May 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: comply with mypy `truthy-bool`
parent
1bb97299
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
src/poetry/console/commands/init.py
+1
-1
src/poetry/inspection/info.py
+1
-5
No files found.
src/poetry/console/commands/init.py
View file @
b762bfd3
...
...
@@ -418,7 +418,7 @@ You can specify a package in the following forms:
return
[
parse_dependency_specification
(
requirement
=
requirement
,
env
=
self
.
env
if
isinstance
(
self
,
EnvCommand
)
and
self
.
env
else
None
,
env
=
self
.
env
if
isinstance
(
self
,
EnvCommand
)
else
None
,
cwd
=
cwd
,
)
for
requirement
in
requirements
...
...
src/poetry/inspection/info.py
View file @
b762bfd3
...
...
@@ -424,10 +424,7 @@ class PackageInfo:
except
ValueError
:
return
None
info
=
cls
.
_from_distribution
(
dist
=
dist
)
if
info
:
return
info
return
None
return
cls
.
_from_distribution
(
dist
=
dist
)
@classmethod
def
from_package
(
cls
,
package
:
Package
)
->
PackageInfo
:
...
...
@@ -491,7 +488,6 @@ class PackageInfo:
# we discovered PkgInfo but no requirements were listed
assert
info
info
.
_source_type
=
"directory"
info
.
_source_url
=
path
.
as_posix
()
...
...
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