Skip to content

Commit 52d7719

Browse files
authored
fix: type hint kwargs properly (#2364)
* fix * chore: changelog
1 parent 4f949a8 commit 52d7719

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
@@ -239,6 +239,8 @@ These changes are available on the `master` branch, but have not yet been releas
239239
([#2345](https://github.com/Pycord-Development/pycord/pull/2345))
240240
- Fixed `Thread.me` being out of date and added the thread owner to `Thread.members` on
241241
creation. ([#1296](https://github.com/Pycord-Development/pycord/issues/1296))
242+
- Fixed keyword argument wildcard of `bridge.has_permissions` having the wrong type
243+
hint. ([#2364](https://github.com/Pycord-Development/pycord/pull/2364))
242244

243245
## [2.4.1] - 2023-03-20
244246

discord/ext/bridge/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def predicate(func: Callable | ApplicationCommand):
525525
return predicate
526526

527527

528-
def has_permissions(**perms: dict[str, bool]):
528+
def has_permissions(**perms: bool):
529529
r"""Intended to work with :class:`.SlashCommand` and :class:`BridgeCommand`, adds a
530530
:func:`~ext.commands.check` that locks the command to be run by people with certain
531531
permissions inside guilds, and also registers the command as locked behind said permissions.

0 commit comments

Comments
 (0)