Skip to content

Commit dd6688d

Browse files
JL710Paillat-devLulalabyJustaSqu1d
committed
fix: fix typing for PermissionOverwrite.update (Pycord-Development#2878)
* fix: fix typing for PermissionOverwrite.update * Update CHANGELOG.md Co-authored-by: JustaSqu1d <[email protected]> Signed-off-by: Lala Sabathil <[email protected]> --------- Signed-off-by: Paillat <[email protected]> Signed-off-by: Lala Sabathil <[email protected]> Co-authored-by: Paillat <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: JustaSqu1d <[email protected]> (cherry picked from commit 890153a)
1 parent 5f5b0fd commit dd6688d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ These changes are available on the `master` branch, but have not yet been releas
144144
([#2843](https://github.com/Pycord-Development/pycord/pull/2843))
145145
- Fixed `TypeError` when using `@option` with certain annotations and along with
146146
`channel_types`. ([#2835](https://github.com/Pycord-Development/pycord/pull/2835))
147+
- Fixed type-hinting for `PermissionOverwrite.update`.
148+
([#2878](https://github.com/Pycord-Development/pycord/pull/2878))
147149
- Fixed `AttributeError` when accessing `AuditLogEntry.changes` more than once.
148150
([#2882])(https://github.com/Pycord-Development/pycord/pull/2882))
149151

discord/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def is_empty(self) -> bool:
858858
"""
859859
return len(self._values) == 0
860860

861-
def update(self, **kwargs: bool) -> None:
861+
def update(self, **kwargs: bool | None) -> None:
862862
r"""Bulk updates this permission overwrite object.
863863
864864
Allows you to set multiple attributes by using keyword

0 commit comments

Comments
 (0)