Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 11, 2023
1 parent a517cb3 commit 6b9ad6f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/poetry/core/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ def urls(self) -> dict[str, str]:
@property
def category(self) -> str:
warnings.warn(
(
"`category` is deprecated and will be removed in a future release."
),
"`category` is deprecated and will be removed in a future release.",
DeprecationWarning,
stacklevel=2,
)
Expand All @@ -388,16 +386,12 @@ def category(self) -> str:
@category.setter
def category(self, category: str) -> None:
warnings.warn(
(
"Setting `category` is deprecated and will be removed in a future"
" release."
),
"Setting `category` is deprecated and will be removed in a future release.",
DeprecationWarning,
stacklevel=2,
)
self._category = category


@property
def readme(self) -> Path | None:
warnings.warn(
Expand Down

0 comments on commit 6b9ad6f

Please sign in to comment.