Skip to content

Commit e72c7a5

Browse files
committed
fix: fix typing for PermissionOverwrite.update
1 parent a6b6922 commit e72c7a5

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
@@ -140,6 +140,8 @@ These changes are available on the `master` branch, but have not yet been releas
140140
([#2843](https://github.com/Pycord-Development/pycord/pull/2843))
141141
- Fixed `TypeError` when using `@option` with certain annotations and along with
142142
`channel_types`. ([#2835](https://github.com/Pycord-Development/pycord/pull/2835))
143+
- Fixed type hint for `PermissionOverwrite.update`
144+
([#2878](https://github.com/Pycord-Development/pycord/pull/2878))
143145

144146
### Changed
145147

discord/permissions.py

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

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

0 commit comments

Comments
 (0)