Skip to content

Comments

fix(command): fix incorrect param check for Parser.register#236

Merged
TWT233 merged 1 commit intoTWT233:mainfrom
Yqloss:main
Aug 29, 2024
Merged

fix(command): fix incorrect param check for Parser.register#236
TWT233 merged 1 commit intoTWT233:mainfrom
Yqloss:main

Conversation

@Yqloss
Copy link
Contributor

@Yqloss Yqloss commented Jun 22, 2024

Change the requirements from non-async and only one str param, to regardless of async and either (str) or (Message, Client, str) param types. Since this feature was broken, there would be no incompatibilities.

Closes #235

Change the requirements from non-async and only one str param, to regardless of async and either (str) or (Message, Client, str) param types.
Since this feature was broken, there would be no incompatibilities.

Closes #235
@TWT233 TWT233 merged commit 391d0cc into TWT233:main Aug 29, 2024
@hank9999
Copy link
Contributor

Should we let pylint ignore the problems?

khl/command/parser.py:32:16: W0613: Unused argument 'msg' (unused-argument)
khl/command/parser.py:32:30: W0613: Unused argument 'client' (unused-argument)
khl/command/parser.py:2:0: W06[11]: Unused import asyncio (unused-import)

hank9999 added a commit to hank9999/khl.py that referenced this pull request Nov 19, 2024
hank9999 added a commit to hank9999/khl.py that referenced this pull request Nov 19, 2024
@TWT233
Copy link
Owner

TWT233 commented Nov 20, 2024 via email

@hank9999
Copy link
Contributor

hank9999 commented Nov 20, 2024

Would be better to fix since looks kinda easy to cleanup? @TWT233

It was fixed with the right way in #239
I removed unused import and renamed the argument with prefix _

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The custom parser feature is completely broken

3 participants