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
d158d1bb
Commit
d158d1bb
authored
Feb 28, 2022
by
finswimmer
Committed by
Bjorn Neergaard
Mar 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove `__future__` import from src/poetry/__init__.py
parent
e3fb7f27
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
.pre-commit-config.yaml
+5
-1
src/poetry/__init__.py
+4
-3
No files found.
.pre-commit-config.yaml
View file @
d158d1bb
...
@@ -59,7 +59,11 @@ repos:
...
@@ -59,7 +59,11 @@ repos:
name
:
"
isort
(python)"
name
:
"
isort
(python)"
types
:
[
python
]
types
:
[
python
]
args
:
[
--add-import
,
from __future__ import annotations
]
args
:
[
--add-import
,
from __future__ import annotations
]
exclude
:
^(install|get)-poetry.py$
exclude
:
|
(?x)(
^(install|get)-poetry.py$
| ^src/poetry/__init__.py$
)
-
id
:
isort
-
id
:
isort
name
:
"
isort
(pyi)"
name
:
"
isort
(pyi)"
types
:
[
pyi
]
types
:
[
pyi
]
...
...
src/poetry/__init__.py
View file @
d158d1bb
from
__future__
import
annotations
__path__
=
__import__
(
"pkgutil"
)
.
extend_path
(
__path__
,
__name__
)
__path__
=
__import__
(
"pkgutil"
)
.
extend_path
(
__path__
,
__name__
)
# When editing this file make sure line 1 keeps unchanged.
# Setting __path__ must take place in the first line. No line breaks are allowed either.
# Otherwise, IDEs like PyCharm are unable to follow imports to poetry.core.
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