Skip to content

Commit 890153a

Browse files
JL710Paillat-devLulalabyJustaSqu1d
authored
fix: fix typing for PermissionOverwrite.update (#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]>
1 parent 76f91b0 commit 890153a

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
@@ -146,6 +146,8 @@ These changes are available on the `master` branch, but have not yet been releas
146146
([#2843](https://github.com/Pycord-Development/pycord/pull/2843))
147147
- Fixed `TypeError` when using `@option` with certain annotations and along with
148148
`channel_types`. ([#2835](https://github.com/Pycord-Development/pycord/pull/2835))
149+
- Fixed type-hinting for `PermissionOverwrite.update`.
150+
([#2878](https://github.com/Pycord-Development/pycord/pull/2878))
149151
- Fixed `AttributeError` when accessing `AuditLogEntry.changes` more than once.
150152
([#2882])(https://github.com/Pycord-Development/pycord/pull/2882))
151153

discord/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def is_empty(self) -> bool:
869869
"""
870870
return len(self._values) == 0
871871

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

0 commit comments

Comments
 (0)