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
65b220e3
Commit
65b220e3
authored
Jan 21, 2022
by
Daniel Eades
Committed by
Bjorn Neergaard
Jan 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
de-glob mypy whitelist for 'utils' module
parent
28d05d00
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
pyproject.toml
+6
-1
src/poetry/utils/_compat.py
+4
-4
No files found.
pyproject.toml
View file @
65b220e3
...
...
@@ -120,7 +120,12 @@ module = [
'poetry.mixology.*'
,
'poetry.packages.locker'
,
'poetry.repositories.installed_repository'
,
'poetry.utils.*'
'poetry.utils.appdirs'
,
'poetry.utils.authenticator'
,
'poetry.utils.env'
,
'poetry.utils.exporter'
,
'poetry.utils.password_manager'
,
'poetry.utils.setup_reader'
,
]
ignore_errors
=
true
...
...
src/poetry/utils/_compat.py
View file @
65b220e3
...
...
@@ -5,11 +5,11 @@ from typing import List
from
typing
import
Optional
try
:
from
importlib
import
metadata
except
ImportError
:
if
sys
.
version_info
<
(
3
,
8
):
# compatibility for python <3.8
import
importlib_metadata
as
metadata
# noqa: F401, TC002
import
importlib_metadata
as
metadata
else
:
from
importlib
import
metadata
# noqa: F401, TC002
WINDOWS
=
sys
.
platform
==
"win32"
...
...
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