-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type errors when using limit=None for reddit.inbox.unread #2042
Comments
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 30 days. |
Still a relevant issue |
@foolo will you make a pull request that updates the code to have the following:
We don't guarantee pyright will pass, so this change may result in cascading changes. |
Thanks for replying! Though I don't really know how to test it all and fix any cascading changes it may cause (or have time to figure it out). |
Yeah, you're right that I'm not quite asking for that. While we can fix this one error to make pyright happy in this particular case, it's likely to cause a cascading issue, which may or may not be visible to end-users. As a result, pyright presently remains in an unsupported state. I happen to be doing some work to address type checking related issues as reported by |
Fully understand. This is not a blocker in any way. Just need to add |
Is this issue still relevant? |
I believe it is yeah. Still seems to be no issues on the dev side with adding a |
Describe the Bug
Steps:
make a call to
reddit.inbox.unread(limit=None)
, as described in https://praw.readthedocs.io/en/stable/code_overview/reddit/inbox.html#praw.models.Inbox.unreadSee code example below.
Observe the type checker errors (from pyright):
Or in the IDE:

Note: The program runs without crashing but I don't know if it behaves correctly because I don't have an available unread feed which exceeds the default limit of 100.
Desired Result
No type error should show
Code to reproduce the bug
My code does not include sensitive credentials
Relevant Logs
This code has previously worked as intended
I'm not sure, I haven't used this code before.
Operating System/Environment
Ubuntu 23.10
Python Version
3.11.6
PRAW Version
7.8.1
Links, references, and/or additional comments?
No response
The text was updated successfully, but these errors were encountered: