Skip to content

Commit

Permalink
remove __future__ import from src/poetry/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer authored and neersighted committed Mar 1, 2022
1 parent e3fb7f2 commit d158d1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ repos:
name: "isort (python)"
types: [python]
args: [--add-import, from __future__ import annotations]
exclude: ^(install|get)-poetry.py$
exclude: |
(?x)(
^(install|get)-poetry.py$
| ^src/poetry/__init__.py$
)
- id: isort
name: "isort (pyi)"
types: [pyi]
Expand Down
7 changes: 4 additions & 3 deletions src/poetry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations


__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.

0 comments on commit d158d1b

Please sign in to comment.