Skip to content

Commit

Permalink
chore: date deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceAesth committed Feb 9, 2024
1 parent 85fab87 commit 766d6c5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion aiosu/v1/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,5 +483,8 @@ async def aclose(self) -> None:

async def close(self) -> None:
"""Closes the client session. (Deprecated)"""
warn("close is deprecated, use aclose instead", DeprecationWarning)
warn(
"close is deprecated, use aclose instead. Will be removed on 2024-03-01",
DeprecationWarning,
)
await self.aclose()
5 changes: 4 additions & 1 deletion aiosu/v2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2634,5 +2634,8 @@ async def aclose(self) -> None:

async def close(self) -> None:
"""Closes the client session. (Deprecated)"""
warn("close is deprecated, use aclose instead", DeprecationWarning)
warn(
"close is deprecated, use aclose instead. Will be removed on 2024-03-01",
DeprecationWarning,
)
await self.aclose()
5 changes: 4 additions & 1 deletion aiosu/v2/clientstorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,8 @@ async def aclose(self) -> None:

async def close(self) -> None:
"""Closes the client session. (Deprecated)"""
warn("close is deprecated, use aclose instead", DeprecationWarning)
warn(
"close is deprecated, use aclose instead. Will be removed on 2024-03-01",
DeprecationWarning,
)
await self.aclose()
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you need assistance, you should look here:
Breaking changes
----------------

**v2.2.0:** The `close()` methods of the clients are now named `aclose()` as per naming conventions for asynchronous methods. The old method is still available with a deprecation warning, but will be removed soon.
**v2.2.0:** The `close()` methods of the clients are now named `aclose()` as per naming conventions for asynchronous methods. The old method is still available with a deprecation warning, but will be removed on 2024-03-01.

**v2.0.3:** The replay model has been moved to `models/files/replay.py` and the `Replay` class has been renamed to `ReplayFile`.

Expand Down

0 comments on commit 766d6c5

Please sign in to comment.